2012-01-13 62 views

回答

0

可以使用:input選擇與.not()方法一起

$(':input').not(':disabled') 
4

這應該工作:

$('input, select, textarea').filter(':enabled'); 

或者,如果你想獲得真正短:

$(':input:enabled') 
0

有您嘗試過.not() method

$('input, select, textarea').not(':disabled') 

其可進一步簡化爲:

$(':input').not(':disabled') 

(請注意,選擇器':input'除了輸入,選擇和textarea元素選擇按鈕元素)