[jQuery] what's wrong with this 'loop' ? (newbie question)
This is the code:
container.after("<div class='stripTransmitter'><ul></ul></div>");
container.find("img").each(function(i) {
$("div.stripTransmitter ul").append("<li><a href='#'>"+(i+1)+"</
a></li>");
});
Suppose that container is $(this) where this is a DIV.
I am making experiments to find out how plugins work.
Suppose that in a page i put TWO DIVs and suppose that i want to
append the LI items BELOW each DIV with a class "stripTransmitter"
into a UL element.
Why it count correctly the number of items to be appended -
container.find("img").each(function(i) - but "renders" wrongly?
Have a look.
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-multi.html
I can't solve that.
GC