Menu accordion with jQuery


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

Download hoverIntent - http://cherne.net/brian/resources/jquery.hoverIntent.html


Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2.  
  3. $('#menu ul').hide();
  4. $('#menu li').hoverIntent(
  5. function() {
  6. $(this).children('ul').slideDown('slow');
  7. }, function() {
  8. $(this).children('ul').slideUp('slow');
  9. });
  10.  
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.