通过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;
   }
  }
  

 

相关文章:

  • 2021-06-19
  • 2022-02-21
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-11-30
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
相关资源
相似解决方案