我有以下JS代碼:jQuery的選擇上不工作
$("#idserver").change(function(){
$('input:checkbox').removeAttr('checked');
});
idserver:
<select id="idserver" name="serverid">
<option value='0'>number one</option>
<option value='1'>number two</option>
</select>
複選框:
<input type="checkbox" id="check" class="calc" name="access[a]" value="2" />example
和簡單母鹿sn't工作
我沒有看到你的複選框選中的屬性。 – jbrahy 2014-09-03 04:55:35
使用'console.log('到達此處');'在'change'函數內部檢查控制是否到達它的內部。 – bhargavg 2014-09-03 04:55:54
它適用於我 http://jsfiddle.net/agqxhgmg/ – Parfait 2014-09-03 04:56:07