var title = document.getElementById('testid');
for(var i=0;i<title.options.length;i++){
if(title.options[i].innerHTML == 'test'){
title.options[i].selected = true;
break;
}
}
IE6与ff测试通过
本文链接http://www.cxybl.com/html/wyzz/JavaScript_Ajax/20130108/35686.html
时间: 2024-11-05 14:53:40