通过action传过来的值在option获取进行验证的方法

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

通过action传过来的值在option获取进行验证的方法

  2020-05-13 我要评论
通过action传过来的值在option获取进行验证的方法:
复制代码 代码如下:

for(var i=0;i<document.getElementById("ufacilityType").options.length;i++){
if(document.getElementById("ufacilityType").options[i].text==datas[0].facilityType){
document.getElementById("ufacilityType").options[i].selected=true;
break;
}
}

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们