I have a table which may contain other inner tables (it's not possible to edit generated markup). I want to create a delegate function for row mouseenter and mouseleave which only triggers for the associated main table rows (and not inner tables rows), as following:
$("#tableid").delegate("tr", "mouseenter mouseleave", function(e) {
//do stuff here
});
But with this selector it also selects the inner table rows, so how can I modify the selector to avoid selecting inner table rows?