JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<div id="ancestor">
<button>click me</button> <i>(The button won't invoke the handler.)</i>
</div>
JavaScript
$('button').live('click', function() {
alert( "I was clicked" );
});
$('#ancestor').click(function() {
// Stop the event from bubbling any further
return false;
});