Don't worry about the vwo__$, it is just jquery used on another system.
First I am creating id's numbered for each, then instead of repeating the code can I make jquery find all id's div.text-right#top-1
up to around 20?
vwo_$.each(vwo_$("div.details div.text-right"), function(ind) {
vwo_$(this).attr('id', 'top-' + parseInt(ind + 1));
});
var x = 1
vwo_$.each(vwo_$("div.text-right#top-:eq(' + x + ')"), function(x) {
x++;
vwo_$(this).append(vwo_$("div.infolist ul:nth-child(1) li:nth-child(1)"));
console.log(x)
});
I would like a more efficient for the jquery selector to count.
It doesn't continue looking for ids after #top-1