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?
$(".Gr开发者_StackOverflow社区idViewStyle > 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))")
精彩评论