mardi 21 avril 2015

slideDown immediate li and slide up other li elements

Vote count: 0

I want to slideUp all li element and slideDown li elements under current ul element

 $(document).ready(function(){
     $("li").slideUp();
    });


     $(".nav").hover(function(e){
         $(this).children("li").slideDown();
          $("li").slideUp();
         e.stopPropogation();
     });

this is the fiddle

Problem is it is sliding up everything in the end What is the mistake i have done?

asked 1 min ago
vignesh
1,396



slideDown immediate li and slide up other li elements

Aucun commentaire:

Enregistrer un commentaire