I’m sure this is simple with .parent() or such but can’t find an answer anywhere. I run a function on TR click and I want to determine if that row is in the THEAD or not.
My code:
$('.mouseRow tr').click(function() {
// is this row is in THEAD?
});
Sure, you can check the parent, why not?
Alternatively you couldl’ve added your event to the row in the head only