Posted By

delineo on 12/03/10


Tagged

menu navigation drop ul li


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

luman
thisisrogerflanagan
virendrakryadav


Simple Drop Menu


 / Published in: jQuery
 

  1. $(document).ready(function(){
  2.  
  3. $("#Nav ul li").mouseover(function() {
  4. $(this).children("ul").show();
  5. });
  6.  
  7. $("#Nav ul li").mouseout(function() {
  8. $(this).children("ul").hide();
  9. });
  10.  
  11. });
  12.  
  13. <ul id="Nav">
  14. <li>Item 1
  15. <ul>
  16. <li>Item 2</li>
  17. </ul></li>
  18. <li>Item 2</li>
  19. </ul>

Report this snippet  

You need to login to post a comment.