爱问知识人 爱问教育 医院库

复选框分组全选JS代码中的主要代码有哪些?

首页

复选框分组全选JS代码中的主要代码有哪些?

复选框分组全选JS代码中的主要代码有哪些?

提交回答

全部答案

    2018-10-27 21:45:37
  •   【实例代码】html xmlns=http://www。w3。org/1999/xhtml headtitle标题页-学无忧(www。xue51。com)/title/headbodyform id=form1 name=form1 method=post action= table width=120 border=0 tr td教师组/学生组/td /tr tr tdinput name=check type=checkbox id=check value=yes / input name=nocheck type=checkbox id=nocheck value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox1 value=yes / input name=nocheck type=checkbox id=Checkbox2 value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox3 value=yes / input name=nocheck type=checkbox id=Checkbox4 value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox5 value=yes / input name=nocheck type=checkbox id=Checkbox6 value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox7 value=yes / input name=nocheck type=checkbox id=Checkbox8 value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox9 value=yes / input name=nocheck type=checkbox id=Checkbox10 value=no //td /tr tr tdinput name=check type=checkbox id=Checkbox11 value=yes / input name=nocheck type=checkbox id=Checkbox12 value=no //td /tr tr td全选教师 input name=checkall type=checkbox id=checkall value=checkbox onclick=change(document。
      getElementsByName('check'), this。checked) //td /tr tr td全选学生 input name=nocheckall type=checkbox id=nocheckall value=checkbox onclick=change(document。
      getElementsByName('nocheck'), this。checked) //td /tr /table/formscript type=text/javascriptvar change = function (chkArray, val) {for (var i = 0 ; i chkArray。
      length ; i ++) //遍历指定组中的所有项 chkArray[i]。checked = val; //设置项为指定的值-是否选中}/script/body/html。

    任***

    2018-10-27 21:45:37

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):