Hi I have a <div> with an onclick event, inside the <div> i have an <a> element for text. What i'm trying to do is seperate their events so that when i click the text of the <a> element the parent <div> is not triggered as well, but when i click off of the <a> and on the <div> it is triggered. I think this may be called bubbling but i can't figure out how to control it.
Thanks!
Thanks!
Code:
<div onclick="some_event">
<a onclick="some_other_event">
Clickable text
</a>
</div>
Comment