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

 

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

 

posted on 2013-11-14 20:52  新一  阅读(201)  评论(0编辑  收藏  举报

导航