通过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
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我