jQuery drop-down navigation


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

Simply jQuery script for CSS drop-down menu


Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2. //Main nav drop-downs
  3. $('#header ul li').each(function() {
  4. $(this).mouseover(function() {
  5. $(this).children('ul').css("display", "block");
  6. });
  7. $(this).mouseout(function() {
  8. $(this).children('ul').css("display", "none");
  9. });
  10. });
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.