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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -