jQuery to override non-clickable Menu item with Sub Menu

jQuery menu click fix

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.

Suggestive Reads

Newest Reads

Our Top-Rated Services