jsp <input type="checkbox" name="fileId"> 是否选中
var a = document.getElementsByName("fileId");for(k in a){ if(a[k].checked){ alert(是); }else{ alert(否); } }