通过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  新一  阅读(210)  评论(0)    收藏  举报

导航