As the anchor is in tr element,whenever click on anchor
is called ,the event will be propagated to the parent tr
and its click function is also executed.
$('a').click(function(e){
e.stopPropagation();
});
this stops the event of anchor click to bubble up to the parent