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

前端技术 2023/09/02 JavaScript
通过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;
}
}

本文地址:https://www.stayed.cn/item/3780

转载请注明出处。

本站部分内容来源于网络,如侵犯到您的权益,请 联系我

我的博客

人生若只如初见,何事秋风悲画扇。