I'm attempting to activate table row checkbox when the user clicks within a table row. Each row has a checkbox.
I have the following code which works fine as a standard version.
$('.scrollTable tr').click(function(event) {
if(event.target.type !== 'checkbox') {
$(':checkbox', this).trigger('click');
}
});
The data in the table I'm attempting to add this to has various types i.e. there are images which create popups, links which create tooltips and links which redirect to another page. The problem I'm having is that in clicking a link, image etc the corresponding checkbox is ticked.
Any ideas?