js:在Lotus中如何判下拉框有有被?
各位大哥好!小弟是新手
教下,在Lotus中如何判下拉框有有被?
我在XX域值的onblur中了:
---------------------------------------------------
var cc=document.getElementById( "doing ");
if(cc.value== " ")
{
alert( "一目! ");
return false;
}
else
{
return true;
}
---------------------------------------------------
然後把XX域的HTML的id性成doing,的候怎鼠移後反映呢??
各位大哥小弟,不感激!了,小弟一直在
[解决办法]
不清楚你要实现什么功能。
下拉列表的javascript操作网上很好搜到吧。
比如:那个下拉列表域叫doing
document.forms[0].doing.options.selectedIndex 表示当前列表中被选中的列数
document.forms[0].doing.options[document.forms[0].doing.options.selectedIndex].text
就是当前选中列表中的值。。。