I have a panel bar with several items inside. Each <li> item has a regular HREF link, which, when clicked, redirects the page as it is supposed too.
Problem is, when I try to override a link using jQuery or just bind a click event to any element within the panel bar, nothing works.
I think I am missing something here. The list item is as follows:
The jQuery code I have is:
No matter what I try, it seems impossible to override link clicks when the link is inside a panel bar list...
Problem is, when I try to override a link using jQuery or just bind a click event to any element within the panel bar, nothing works.
I think I am missing something here. The list item is as follows:
<li><a class="popup" href="gosomehwereelse">click me</a></li>The jQuery code I have is:
$("a.popup").click(function (e) { e.preventDefault(); // do something... });No matter what I try, it seems impossible to override link clicks when the link is inside a panel bar list...