I'm working on SharePoint with jQuery and each time I use the prepend() function in combination with the each() function in order to display a image before each cell in a list, I get several of those images.
More specifically, the amount of those images matchs the amount of items in the list. I bet that's a clue to what's going on, but I'm no jQuery expert
Here is a piece of code:
$(item).each(function(i, e) {
$(e).prepend(image);
});
Image, btw, image
is a variable that contains html code for an image. Item
is this:
var item = #MSO_ContentTable td.ms-vb2>div:has(>div);
This place is awesome!