jcadima
8/28/2015 - 2:35 PM

Disable Specific Parent Link without affecting similar submenu Labels

Disable Specific Parent Link without affecting similar submenu Labels

this will  disable  Research Link,
we could have used the following
  //  About Eei Link disabled
	jQuery("#menu-main-menu a:contains('Research')").click(function(e) {
	   e.preventDefault();
	});
	
But that will also disable any submenu items or other parent links that CONTAIN "Research"	
	
	
instead specify the ending of the URL and disable link with CSS
	jQuery('#menu-main-menu a[href$="/research/"]').css("pointer-events", "none")