Thanks Jörn, good idea, that did the trick.
With some fiddling I was able to reduce the code to look like this, so it
can be applied to any list of elements:
var showInSequence = function($el){
if($el && $el.is())
$el.eq(0).show("slow", function(){
showInSequence($(this).next()) } );
}
showInSequence( $("#myList LI") );
George
Jörn Zaefferer wrote:
>
> My untested stab, with a callback:
>
> var jquery = $(/*select stuff*/),
> position = 0;
> var handler = function() {
> if(position < jquey.length)
> $(jquery[position++]).show("slow", handler);
> };
> handler();
>
> Jörn Zaefferer
>
--
View this message in context:
http://www.nabble.com/What-is-the-best-way-to-show%28%29-many-items-in-sequence%2C-one-after-the-other--tf2629186.html#a7337790
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/