Highlighting columns in a table with jQuery

后端 未结 6 1918
感动是毒
感动是毒 2021-01-16 02:02

I have a table and I am highlighting alternate columns in the table using jquery

$(\"table.Table22 tr td:nth-child(even)\").css(\"background\",\"blue\");
         


        
6条回答
  •  旧巷少年郎
    2021-01-16 02:55

    Did you test the following?

    $("table.Table22 tr td:nth-child(even):not(:last-child)").css("background","blue")
    

提交回复
热议问题