How to exclude the first column from jquery hover

I have this feature that allows you to direct an event to the table. It currently excludes the header row, but I also need to exclude the first column. Any ideas?

  $(".GridViewStyle > tbody > tr:not(:has(table, th))")                
                .mouseover(function(e) {  
+5
source share
2 answers
$(".GridViewStyle > tbody > tr:not(:has(table, th)) td:not(:first-child)")

but you will hover or mouse over tds not trs. so in the handler you will do

$(this).closest('tr')

to access the mp you are going to change the style, etc.

+5
source

You can do:

    $(".GridViewStyle > tbody > tr:not(:has(table, th)) td:not(:eq(0))")
+2
source

All Articles