Is there a way to prevent the image from triggering a click event in this code snippet?
$('#templtable .trhover *:not(#infoimg)').live('click', function(event) {
event.stopPropagation();
$(this).toggleClass('selected');
$('#infoimg').click(function(event) {
console.log("infoimg");
event.stopPropagation();
});
Below is the structure of the table:
<table><tr class='trhover'><td><img id='infoimg' src='/images/icon-info.gif' alt='Details'><input type='checkbox' class='followup' id='1' value='234234'></td><td>234234</td></tr><table>
Despite attempting to exclude the image, the image still retains its click event functionality. Any ideas on how to fix this issue?
Appreciate any help you can provide.