EXTENSION TO MY PREVIOUS Q How to select a span with multiple classes and placed inside an anchor?
** Adding an extension to this, I would like to add a class that needs to be ignored from the click event. hence I used below code which doesnt work. Any help will be appreciated!
$('span.c3, span.c4:not(.c5)').parents('a').click(function (e) {
alert("clicked!");
});
I've also tried using span.c5 in the not selector but that doesnt work either :(
Please find the html change below:
<div class="c0 c">
<a class="c1 c2">
<span class="c3 c4 c5"></span>Anchor_Text
</a>
</div>