I have a table with click events bound to its rows ( You have to stop event bubbling. In jQuery you can do this by in the onclick event of the anchor tag. Edit See this post jquery Event.stopPropagation() seems not to work I would use for All Works in all modern browsers.). There are elements inside those rows with their own click events assigne
e.stopPropagation();
$("a").live("click",function(e){alert("clicked!");e.stopPropagation();});
bind instead of live for both <tr> and <a> and the following code$("a").bind("click", function(e){ alert("clicked!"); e.stopPropagation() });<a>. <a href>'s will work as expected and <tr> event handler code won't execute after clicking <a>.