Prevent bubbling

Prevent bubbling

I have code that looks like this:

$("table tbody tr").click(function(){
   // Do some stuff
});
$("table tbody tr a.remove").click(function(){
   return confirm("Do you want to remove this row?");
});


The problem is that when I click on a link both events get triggered: the table row onclick and the link onclick. I only need the first one when I click outside a link.

I've read the docs but I couldn't find a method to cancel bubbling from the second handler. What's the jQuery way to accomplish this?