Toll Free: (844) 566-6525 | Toronto: (647) 689-2440

jQuery menu click fix

jQuery to override non-clickable Menu item with Sub Menu

A simple and easy code to override bootstrap default behavior of making links non-clickable if that Menu item has a sub menu.

jQuery(".deeper.parent a").each(function(i, obj){
jQuery(this).click(function(){
var url = jQuery(this).attr("href");
jQuery(location).attr('href', url);
});
});

Are you having website issues, At IDL Web Inc., we provide reliable website design services in Canada for businesses and individuals. Connect with us today.

Call toll free (844) 566-6525 or email us for a no obligation review of your project