This should solve the problem for both Chrome and Firefox:
$('tr.parent') .css("cursor", "pointer") .click(function (e) { if ($(e.target).is('select') || $(e.target).is('option')) { // } else { $(this).css('background-color', 'red'); } }); $('tr[class^=child-]').find('td > div, td').hide();
JSFiddle Test
Edit: a simplified version if you do not need to do anything when you press the select button.
$('tr.parent') .css("cursor", "pointer") .click(function (e) { if (!($(e.target).is('select') || $(e.target).is('option'))) { $(this).css('background-color', 'red'); } }); $('tr[class^=child-]').find('td > div, td').hide();
JSFiddle Test
source share