2011-03-07 2 views

답변

5
$('table[class="services"] tr td:nth-child(3), table[class="services"] tr td:nth-child(2)') 
+0

내가 첫 번째 행의 두 번째 열을 선택하려면 내가 모든 행에서의 선택 두 번째 및 세 번째 열을 생각, 내가 그걸 어떻게 할 수 있습니까? 나는 다음과 같은 것을 시도했다. $ ("# ChallanGrid tr : eq (1) td : (3)"). –

2

당신은 선택기의 첫 번째 부분의 반복을 피하기 위해 분할 수 :

$('table.services tr td').filter(':nth-child(2), :nth-child(3)') 

또한 table.services는 CSS에서 클래스를 선택하기 위해 "올바른"방법은 있습니다!

1

당신은 할 수 있습니다 :

$('table.services tr td:nth-child(2), table.services tr td:nth-child(3)')