摘要: JavaScript部分: function checkAll(obj){ $("#box input[type='checkbox']").prop('checked', $(obj).prop('checked'));}html部分: <div id="box"> <input type="ch 阅读全文
posted @ 2023-07-27 21:34 .net&new 阅读(71) 评论(0) 推荐(0) 编辑
摘要: <input type="checkbox" id="ckall" onclick="checkall()"/>全选<input type="checkbox" class="ckitem" />学习<input type="checkbox" class="ckitem" />吃饭<input t 阅读全文
posted @ 2023-07-27 21:32 .net&new 阅读(17) 评论(0) 推荐(0) 编辑