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

复选框和文本框的联动效果JS代码中的主要代码有哪些?

首页

复选框和文本框的联动效果JS代码中的主要代码有哪些?

复选框和文本框的联动效果JS代码中的主要代码有哪些?

提交回答

全部答案

    2018-10-27 21:30:14
  •   【实例代码】html xmlns=http://www。w3。org/1999/xhtml headtitle标题页-学无忧(www。xue51。com)/titlescript language=javascriptfunction chk(obj,txtIndex){var tmpInput = document。
      getElementsByName(textfield)[txtIndex];//获取指定的文本框obj。checked?tmpInput。disabled=false:tmpInput。
      disabled=true; //判断文本框是否处于选中状态}/script/headbodyform id=form1 name=form1 method=post action= input name=che type=checkbox value= onclick=chk(this,'0')/ input type=text name=textfield disabled=true /BR/ input name=che type=checkbox value= onclick=chk(this,'1')/ input type=text name=textfield disabled=true /BR/ input name=che type=checkbox value= onclick=chk(this,'2')/ input type=text name=textfield disabled=true /BR//form/body/html。

    谢***

    2018-10-27 21:30:14

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 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
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):