0
我試圖選擇所有的textareas,但沒有與他們關聯的某個類的textareas。如何取消選擇一個元素w/jQuery?jQuery取消選擇
$('textarea' - '.html').autogrow();
我試圖選擇所有的textareas,但沒有與他們關聯的某個類的textareas。如何取消選擇一個元素w/jQuery?jQuery取消選擇
$('textarea' - '.html').autogrow();
可以使用:not選擇,排除包含類html
的文字區域:
$('textarea:not(.html)').autogrow();
真棒,感謝的人。 – swt83 2009-09-07 18:32:39
不客氣@swt。 – CMS 2009-09-07 23:38:03