如何用javascript得DropDownList中的值阿?急(解分)
如何用javascript得DropDownList中的值?
我的代是的:
function Do()
{
if(document.getElementById('dplType').selectedIndex==0);
{
alert('Yes!');
}
else
{
alert('No!');
}
} 面加后:缺少象 教哥哥怎么解?
[解决办法]
- JScript code
function Do() { if(document.getElementById('dplType').selectedIndex==0)//多了";" { alert('Yes!'); } else { alert('No!'); } }