I have a click method when the user taps a row in my table.
$(\'.table > tbody > tr\').click(function () { if ($(this).hasClass(\"info\")) { $(
Just check if a link is clicked with event.target and .closest() :
event.target
.closest()
$('.table > tbody > tr').click(function (e) { //Catch event here if($(e.target).closest('a').length) return; // Add this if ($(this).hasClass("info")) { $(this).removeClass("info"); } else { $(this).addClass("info"); } });