jquery - Sliding up div overlaps outer div? -


i trying slideup other sub-menu div , fadein current sub-menu while sliding other sub-menu div overlaps outer div.

here code : fiddle

     $(document).ready(function(e){              $(".item").click(function(){                                                  $(this).nextall().children('div').stop().slideup();                 $(this).prevall().children('div').stop().slideup();                 $(this).children('div').fadein(1000);             });         }); 

why not : see fiddle

$(document).ready(function(e){     $(".item").click(function(){                                          $(this).nextall().children('div').stop().slideup();         $(this).prevall().children('div').stop().slideup();         $(this).children('div').slidedown();     }); }); 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -