You can use stopPropagation() , which will allow you to stop the event from stopPropagation() in the parent dom.
Example
$('#button').click(function (e) { e.stopPropagation(); alert('button clicked'); });
set table width to 100% and test it.
Test code
<script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(function() { $('#cell').click(function () { alert('cell clicked'); }); $('#button').click(function (e) { e.stopPropagation(); alert('button clicked'); }); }); </script> <table width="100%"> <tr> <td id="cell"> <button id="button">go</button> </td> </tr> </table>
source share