I have a HTML structure like this:
<table>
<tr onclick="alert ('parent event')">
<td>
<input type="button" name="click me" value="I'm a button" id="click me" />
</td>
</tr>
</table>
Now I have a click event bound on the tr
, now if I click on the button, that click event on the tr
is also triggered.
How can I stop that from happening?