开发者

How to exclude the first column from jquery hover

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))")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜