jsp <input type="checkbox" name="fileId"> 是否选中

  jsp <input type="checkbox" name="fileId"> 是否选中

var a = document.getElementsByName("fileId");for(k in a){
  if(a[k].checked){
    alert(是);
  }else{
    alert(否);
  }
}
原文地址:https://www.cnblogs.com/start-fxw/p/6089624.html