Ideally, im trying to click a div, find the next class within a parent. fade in that class, remove the class.
Click div again, then find next class of ‘page’, fades in, remove the class.
Any help would be great. Currently, .find, .next, .nextAll is resulting in all ul with the class page to fade in at once.
HTML
<div id="container" class="">
<ul id="page_1">
<ul id="page_2" class="page">
<ul id="page_3" class="page">
<ul id="page_4" class="page">
</div>
JS
$("#click").click(function() {
$("#container").children().closest('.page').fadeIn();
});
You could try:
(Your markup i s not correct this assumes:)
fiddle here http://jsfiddle.net/kmtCV/2/