动态加载了多个tab,如何把tab下的checkbox全选:
tabId(获取到tabId),$('"#'+tabId+"input[type=\'checkbox\']"+'"').attr("checked",true);
总提示表达式不识别
------解决方案--------------------
前面写错了这个应该对了
$("#"+tabId+"trtd").find("input[type='checkbox']").attr("checked","true");
编辑:chaxungu时间:2022-10-10 23:24:04分类:web开发
$("#"+tabId+"trtd").find("input[type='checkbox']").attr("checked","true");