博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JS 网页中一个控件变化,其他的都不可读
阅读量:4125 次
发布时间:2019-05-25

本文共 413 字,大约阅读时间需要 1 分钟。

网页中一个控件变化,其他的都不可读

//输入编号后其他的标签显示、隐藏 function displayOtherElements(cusNo){ var count=customerForm.elements.length; var txtValue=cusNo.value; if(txtValue!=null||txtValue!=""){ for(var i=0 ;i < count ; i++){ if(cusNo.name != customerForm.elements[i].name){ customerForm.elements[i].disabled="disabled"; } } }if(txtValue==""||txtValue==null){ for(var i=1 ;i < count ; i++){ customerForm.elements[i].disabled=""; } } }

转载地址:http://rvlpi.baihongyu.com/

你可能感兴趣的文章
WPF实现蜘蛛纸牌游戏
查看>>
单例模式
查看>>
工厂方法模式
查看>>
模板方法模式
查看>>
数据结构之队列、栈
查看>>
数据结构之树
查看>>
数据结构之二叉树
查看>>
二叉树非递归遍历算法思悟
查看>>
红黑树算法思悟
查看>>
从山寨Spring中学习Spring IOC原理-自动装配注解
查看>>
实例区别BeanFactory和FactoryBean
查看>>
Spring后置处理器BeanPostProcessor的应用
查看>>
Spring框架的ImportSelector到底可以干嘛
查看>>
Mysql中下划线问题
查看>>
微信小程序中使用npm过程中提示:npm WARN saveError ENOENT: no such file or directory
查看>>
Xcode 11 报错,提示libstdc++.6 缺失,解决方案
查看>>
idea的安装以及简单使用
查看>>
Windows mysql 安装
查看>>
python循环语句与C语言的区别
查看>>
Vue项目中使用img图片和background背景图的使用方法
查看>>