Im trying to trigger an action when I click anywhere on a tr with a class of parent. Excluding when I click on one of the dropdown boxes.
$('tr.parent')
.css("cursor", "pointer")
.click(function (e) {
if($(e.target).not('select')){
// do something
}
Im trying the following but this is not working.
http://jsfiddle.net/0Lh5ozyb/60/
Try this :
$('tr.parent')
.css("cursor", "pointer")
.click(function (e) {
if($(e.target).is("select"))
{
//... it was a select
}
else
{
//... it was not a select
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With