Toggle dropdown menus for different menu items with Jquery
I think you can use html attribute to group it.

eg.

&lt;div data-toggle="dropdown"&gt; or
&lt;a data-toggle="dropdown"&gt; or whatever


and then

$('#main-menu [data-toggle="dropdown"]').hover(function(e) {
    $(e.currentTarget).find('ul').stop().slideToggle();
});