Created
August 21, 2013 01:07
-
-
Save trentsnippets/6289282 to your computer and use it in GitHub Desktop.
Make Bootstrap drop down menu work on hover instead of click.
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
//Enable bootstrap drop down menu on hover | |
$(document).ready(function() { | |
$('.nav li.dropdown').hover(function() { | |
$('.nav li.dropdown').removeClass('open'); | |
$(this).addClass('open'); | |
}, function() { | |
$(this).removeClass('open'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment