I'm working on creating a for-loop that calls a javascript effect and applies it to an LI, doing it in sequence. Here's what I've got:
$(document).ready(function () {
for(i=1;i<=10;i++) {
$("li#"+i).show();
}
});
However, this doesn't work. I need it to apply the effect to LI#1 then LI#2, LI#3... and so on.
What I'm trying to do is similar to what Twitter does when you click the "more" button at the bottom of the page only instead of jumping I want it to ease down.
EDIT: I can't just wrap the LIs in a DIV as I'm going to be adding LIs to a UL element.
However, if there was a way to animate the UL as it changed size I'd be all for that.