Javascript jquery tablesorter如何仅向第二个td添加类?
我使用jquery tablesorter类,我只想在mouseOver事件中将类添加到第二个td:Javascript jquery tablesorter如何仅向第二个td添加类?,javascript,jquery,html,tablesorter,Javascript,Jquery,Html,Tablesorter,我使用jquery tablesorter类,我只想在mouseOver事件中将类添加到第二个td: 1 2 $('#table').mouseover(function() { $("#table td:nth-child(2)").addClass("tablesorter"); }
1
2
$('#table').mouseover(function() {
$("#table td:nth-child(2)").addClass("tablesorter");
}