I have a table where each <tr>
links to another page.
This is code i use to archive this.
Table:
<tbody>
<tr class="td-link" data-href="/invoice/preview/207/">
<td>#14000059</td>
<td>
<a class="kt_ajax_link" data-invoiceid="207" data-csrf-token="43e848a61f3dadedc182a1454c8070550e4f275fe83d53ef1ac9f961281f1ba4" data-action="/invoice/delete/"><i class="fa fa-trash-alt"></i></a>
</td>
</tr>
</tbody>
jQuery
$(".td-link").click(function() {
window.location = $(this).data("href");
});
How can i make the link <a>
work inside the table, without triggering the jQuery link?
I have tried with z-index
, but cant get it working.
Any suggestions?