给表单多一个属性 <th>选项</th>
<input type="checkbox" name="sProblem" value="${id1}" />
<input type="checkbox" name="sProblem" value="${id2}" />
name="sProblem" 要一样
把value使用id这样后面直接拿这个值传到后台
<input class="btn btn-primary" type="button" οnclick="getTheCheckBoxValue()" value="一键删除"/>
这个是一个按钮键调动方法getTheCheckBoxValue()
function getTheCheckBoxValue(){
confirmx("确认要删除该批软件咨询吗",function(){
obj = document.getElementsByName("sProblem");
check_val = [];
for(k in obj){
if(obj[k].checked)