philchanet
11/8/2016 - 12:42 PM

Manage click on TR while preserving links in TD

Manage click on TR while preserving links in TD

$('tr.openShow').on('click', function(e){
  if(event.srcElement && event.srcElement.tagName == 'TD') {
      window.document.location='index-show.html';
  }
});
<tr class="openShow">
  <td><a href="test.html">Cagnes-sur-Mer</a></td>
  <td><a data-toggle="popover" data-trigger="hover" data-placement="top" data-content="France">FRA</a></td>
</tr>