Say i have
<h3>
some text
<a href="google.com">google</a>
</h3>
I want to attach a click event to the h3
$("h3").click(function(){ $(this).slideDown(); return false; });
but I also want to preserve the clicking on the actual link. Is there a way to do this with jQuery?
Thanks!
You can check the event’s actual
.targetand do nothing if it was an<a>element, for example: