我有以下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