onload的时候执行下面函数
function setDe()
{
var oList = document.getElementById("下拉列表ID");
var iCount = oList.length;
for(var i=0 ; i<iCount ; i++)
{
if(oList.options[i].value == "你想选择的名称")
{
oList.options[i].selected = true;
//或则oList.selectedIndex = i;
}
}
}
function setDe()
{
var oList = document.getElementById("下拉列表ID");
var iCount = oList.length;
for(var i=0 ; i<iCount ; i++)
{
if(oList.options[i].value == "你想选择的名称")
{
oList.options[i].selected = true;
//或则oList.selectedIndex = i;
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货