This is my code
<tr class="rood hoverpointer" onclick="javscript:submenu('PR1301301065','KN_KABEL', event);">
<td>PR1301301065</td>
<td class="statusbalk">
<img class="active" src="img/stop-big.png" alt="Niet gestart" onclick="javascript:setStatus('PR1301301065', 'KN_KABEL',1,this)">
<img src="img/play-big.png" alt="Gestart" onclick="javascript:setStatus('PR1301301065', 'KN_KABEL',2,this)">
<img src="img/pause-big.png" alt="Gestopt" onclick="javascript:setStatus('PR1301301065', 'KN_KABEL',3,this)">
<img src="img/done-big.png" alt="Afgerond" onclick="javascript:setStatus('PR1301301065', 'KN_KABEL',4,this)">
</td>
</tr>
It's all about the onclick-events. When I click on my table-row, the function submenu()
is triggered. That's good. But when I click on one of my images, both setStatus()
and submenu()
are triggered because of the underlying tablerow. How can I ignore the function of my tablerow and only trigger setStatus()
?