摘要:
JavaScript部分: function checkAll(obj){ $("#box input[type='checkbox']").prop('checked', $(obj).prop('checked'));}html部分: <div id="box"> <input type="ch 阅读全文
摘要:
<input type="checkbox" id="ckall" onclick="checkall()"/>全选<input type="checkbox" class="ckitem" />学习<input type="checkbox" class="ckitem" />吃饭<input t 阅读全文