Below is a simplified version of HTML code containing 2 nested click events (one on the href and one on an input). When the user clicks on the input field, it inadvertently triggers the javascript function SelectTable() linked to the href event. This unintended behavior needs to be fixed. Do you have any suggestions on how to prevent this from happening?
Your assistance in this matter would be greatly appreciated.
Here is the code:
<a href="javascript:SelectTable();">
<table id="tableproduct1" class="notselectedElement">
<tr>
<td> Number of elements: <input type="text" name="nrofelements"> </td>
</tr>
</table>
</a>