【发布时间】:2015-04-30 08:30:45
【问题描述】:
我有一个“愚蠢”的问题:当我单击特定按钮时,我想重置未选中的复选框。
HTML
<input type="checkbox">1
<input type="checkbox">2
<button id="clear">Clear</button>
JS
jQuery("#resetta").click(function(){
jQuery('input:checked').removeAttr('checked');
});
【问题讨论】:
标签: html jquery button checkbox