twitter/bootstrap — Issue #1029: [Feature] Make Dropdown with Hover
Author: dbpolito
Created: 2012-01-16 15:17:05+00:00
State: open

Make a easy way to change Dropdown to work with hover instead of Click. something like $('.dropdown-toggle').dropdown('hover').

I'm using this instead of dropdown.js:

$('.navbar li.dropdown').hover(
function(){
$(this).addClass('open').find('ul').stop(true,true).hide().slideDown('fast');
},
function(){
$(this).removeClass('open').find('ul').stop(true,true).slideUp('fast');
}
);
$('.navbar li.dropdown li').unbind('mouseover').unbind('mouseout');