Created
March 20, 2012 12:57
-
-
Save gpassarelli/2135098 to your computer and use it in GitHub Desktop.
jQuery: Disable Parent Links in Nested List Navigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#navigation li:has(ul.sub-navigation)").hover(function () { | |
$(this).children("a").click(function () { | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment