Reputation: 1810
How to perform a " For " loop in jquery?
Upvotes: 0
Views: 309
Reputation: 82335
Or alternatively..
for(var i = 0; i < n; ++i) { /*TODO: Magic*/ }
Upvotes: 3
Reputation: 34632
Use the .each() function.
$('.someSelector').each(function() {
// do stuff
});
Upvotes: 0