I have this function which enables hover event on a table. It currently excludes the header row but I also need it to exclude the very first column. Any ideas?
$(".GridViewStyle > tbody > tr:not(:has(table, th))")
.mouseover(function(e) {
$(".GridViewStyle > tbody > tr:not(:has(table, th)) td:not(:first-child)")
but you will have hover or mouseover fired for tds not trs. so in handler you'll do
$(this).closest('tr')
to access tr which you was going to change style etc
You could do:
$(".GridViewStyle > tbody > tr:not(:has(table, th)) td:not(:eq(0))")
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