jQuery全选、取消全选

来源:互联网 发布:北风网人工智能培训 编辑:程序博客网 时间:2024/06/10 15:15
$("#selectAll").click(function() {if ($("input[name='inputContent']").prop("checked") == false) {$("input[name='inputContent']").removeProp("checked");} else {$("input[name='inputContent']").prop("checked", true);}});

0 0
原创粉丝点击