jQuery: How do I insert an html string an arbitrary number of times (i.e. not with an each() function)?
- by Sam Bivins
I just need to take a certain html query object and append it to an html element a lot of times. I have this:
var box = $("<div class='box'> </div>");
$("#firstbox").after(box);
and it works fine, but it just adds one 'box' after the #firstbox element. I'd like to do something like this:
var box = $("<div…