simple jquery accordion


/ Published in: jQuery
Save to your folder(s)

simple jquery accordion


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2.  
  3. $("#sidebar .menu li ul").hide();
  4.  
  5. $("#sidebar .menu li").hover(function(){
  6. $("ul", this).slideToggle();
  7. }, function(){
  8. $("ul", this).slideToggle();
  9. });
  10.  
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.