選擇我有一個頁面,所有輸入分配行爲的ID: $(「輸入」)模糊(函數(){取消,否則將被
,我需要排除複選框具有特定ID:
<input type="checkbox" id="allButMe" onchange="billingSameChanged();" value="true"/>
THX
選擇我有一個頁面,所有輸入分配行爲的ID: $(「輸入」)模糊(函數(){取消,否則將被
,我需要排除複選框具有特定ID:
<input type="checkbox" id="allButMe" onchange="billingSameChanged();" value="true"/>
THX
使用jQuery's not
selector這樣的:
$("input:not(#allButMe)").blur(function() { });
使用jQuery not這裏
$("input").not("#allButMe").blur(function() {});
請在downvoting時留下評論。謝謝 – 2010-04-25 23:46:43
@Andrew:既然沒人告訴什麼是錯我的回答,我問你,你能告訴我什麼是錯我的回答? – 2010-04-26 19:00:10
@Mahesh - 據我所知,沒有什麼!我upvoted你:) – 2010-04-26 21:52:57