I've got following code:
$('table.tableElements thead|tbody tr').children().hover(function(){
// How can I do this ↑
});
I'd like to catch all tr's
of thead
OR tbody
but not tfoot
.
How can I do this?
I've got following code:
$('table.tableElements thead|tbody tr').children().hover(function(){
// How can I do this ↑
});
I'd like to catch all tr's
of thead
OR tbody
but not tfoot
.
How can I do this?
$('table.tableElements thead tr, table.tableElements tbody tr ')
A bit verbose, but will work.
$('table.tableElements thead tr, table.tableElements tbody tr').children().hover(function() {
});
Try the not
method to exclude the tfoot
rows:
$('table.tableElements tr').not('tfoot tr').children().hover(function(){
// code....
});