I am facing a issue in a <table>
I have a table row which having a Redirect URL and only one table data <td>
having different functionality
<table>
<thead>
<th></th>
<th>Name</th>
<th>ID</th>
<th>Active</th>
</thead>
<tbody>
<tr type="button" onclick="window.location.href = '/xxx/bbb/001';">
<td id="dtr-control"></td>
<td>XXXXXXXXXX</td>
<td>001</td>
<td>True</td>
</tr>
</tbody>
</table>
in the above html, <tr>
will act like a link and the first <td>
having its own functionality like click on the first it will list the other options/controls of the table, it is working fine but also it is redirecting to the page which is defined in the <tr>
.
If I click first <tr>
it should list the options and if I click rest of the row it should redirect me to other page.
How to stop only the parent functionality?
Thanks in Advance.