<li class="menu-229 menuparent menu-path-front even">
<a title="About" href="/tca/">about</a>
<ul style="display: none; visibility: hidden;">
</li>
This is an illustration of how my dynamically created dropdown menu is structured.
The ul represents the dropdown menu with links, but I am aiming to make the About link unclickable. The parent items of the dropdown should not be clickable links.
I attempted:
$('.menuparent').click(function(e) {
e.preventDefault() // or return false;
});
However, this piece of code disables all links in the dropdown menu as well.
Apologies for forgetting to mention that this menu is generated by Drupal. Unfortunately, I am unable to modify it directly. I can only work within the existing framework.