I have written a drop down menu. Originally it was a hover over to drop window however it kept freaking out would flash and not let you click on stuff, at either rate. I attempted to convert it to an On click function. However, once you click it, it does not go away you cannot click it again or click elsewhere on the screen and make it go away without just refreshing the page.
Question
Geoffrey B. Veteran
I have written a drop down menu. Originally it was a hover over to drop window however it kept freaking out would flash and not let you click on stuff, at either rate. I attempted to convert it to an On click function. However, once you click it, it does not go away you cannot click it again or click elsewhere on the screen and make it go away without just refreshing the page.
what did I do wrong?
Using Jquery if it matters.
$(document).ready( function() { $('#nav li').click( function() { $(this).children('ul').stop(true, true); $(this).children('ul').slideDown('fast'); $(this).addClass('menuClick'); }, function() { $(this).children('ul').delay(1000).stop(true, true); $(this).children('ul').slideUp('fast'); $(this).removeClass('menuClick'); } ); } );Link to comment
Share on other sites
1 answer to this question
Recommended Posts