我有一個看起來像這樣與「sibiling」和「不」選擇有問題
<h4></h4>
<table></table> < want this
... < want all these tables
<table></table> < want this
<h4></h4>
<table></table> < not this
... < not these
<table></table> < not this
我想選擇使用此jQuery選擇
$("h4:eq(0) ~ table.someClass:not(h4:eq(1) ~ table.somaClass)")
第一
<h4>
元素只表頁面
它不起作用 - 返回所有表。
謝謝!那nextUntil做這份工作! –