How can I pass a parameter in a call like the following?:
$('nav .navbar-nav .level-0').on('mouseenter', toggle_level0_menu);
function toggle_level0_menu(/*parameters*/) {
// code here
}
If toggle_level0_menu
needed to received a parameter, is there a way to pass it from an inline call? I know the following is a solution:
$('nav .navbar-nav .level-0').on('mouseenter', function() {
// code here
});
But this is precisely what I want to avoid if possible.