[jQuery] Hiding multiple elements, then showing one

[jQuery] Hiding multiple elements, then showing one


I have a little bit of code that I want to hide x amount of divs, then when
they're all hidden to show a specific one. Right now I have this...
// hide all found divs
$(settings.slide).hide();
// get the slide that i want shown
div = $(settings.slide).get(i);
// show the slide when everything is hidden
$(div).fadeIn();
How do I chain a hide all, then show one function?
--
View this message in context: http://www.nabble.com/Hiding-multiple-elements%2C-then-showing-one-tf2318376.html#a6449115
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/