比方說,我有以下設置:jQuery選擇和sibblings
<div>
<div class="pr-selec">some text</div>
...
</div>
<div>
<div class="pr-selec">some text</div>
<div class="new-class">other text</div>
...
</div>
使用jQuery,我怎麼可以只選擇沒有sibbiling .new-class
DIV的.pr-selec
的div類?
我是想這樣的事情:
jQuery(".pr-selec").not().sibblings("new-class").each({
//stuff
});
但並沒有這樣做。
輝煌。謝謝! – thindery