首页  >  文章  >  web前端  >  js 动态选中下拉框_javascript技巧

js 动态选中下拉框_javascript技巧

WBOY
WBOY原创
2016-05-16 18:41:04972浏览

for(var j=0;j{
if(document.getElementById("Select"+rowID).options[j].text==value[5])
index=j;
}
if(index>=0)
document.getElementById("Select"+rowID).options[index].selected=true;

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn