jQuery选择器,用于选择表的第2列和第3列

Mur*_* VP 5 jquery jquery-selectors

我试图只选择我的"服务"表的2列和3列.

例如,

$('table[class="services"] tr td:nth-child(3)')
Run Code Online (Sandbox Code Playgroud)

选择第3列,有没有办法用一个选择器选择第二列第三列?

Jak*_*cki 9

$('table[class="services"] tr td:nth-child(3), table[class="services"] tr td:nth-child(2)')
Run Code Online (Sandbox Code Playgroud)