I have the following html code:
<div class="outerElement">
<div class="text">
Lorem ipsum dolar sit amet
</div>
<div class="attachment">
<!-- Image from youtube video here -->
</div>
</div>
And I have a jQuery onclick event on the .outerElement
however, I don't want the .outerElement
onclick event to be called when I click on the attachment, is there some way to prevent this or to check which element is clicked?