jsp的代码:
jquery部分:
$(function() {
//全选或全不选
$(document).off("click","#authDirectAll").on("click","#authDirectAll",function() {
if(this.checked) {
$("#authDirectListTable input[name='authDirectCheckbox']").prop("checked", "checked");
} else {
$("#authDirectListTable input[name='authDirectCheckbox']").removeAttr("checked");
}
});
$('#authDirectModeRecord').on('show.bs.modal', function () {
selectEvent('${ctx}/myProfile/zgqxxzk/${purDeptArchives.id}','form','authDirectListPannel');
});
});
authDirectAll:控制全选的复选框的id
authDirectListTable:显示结果的id,可以是div也可以是tabel
prop:是设置值,removerAttr是移除属性
authDirectModeRecord:是整个弹出框的div的id
show.bs.modal:是对弹出框显示的设置
sele