<html:select name="MY_FORM" property="aa" styleId="aa" onChange="get()">
<html:optionsCollection name="MY_FORM" property="aaList"/>
</html:select>aaList数据如下
张三 1
李四 2
王五 3我现在在change事件的时候,调用JS函数get()function get()
{
alert(document.formname.aa.value);
}这样的话,弹出来的值是1/2/3.
可是我想要得是张三/李四/王五我用的struts版本是1.2.4
实在不晓得该怎么做了,请各位帮帮忙吧,马上结帖!!!
<html:optionsCollection name="MY_FORM" property="aaList"/>
</html:select>aaList数据如下
张三 1
李四 2
王五 3我现在在change事件的时候,调用JS函数get()function get()
{
alert(document.formname.aa.value);
}这样的话,弹出来的值是1/2/3.
可是我想要得是张三/李四/王五我用的struts版本是1.2.4
实在不晓得该怎么做了,请各位帮帮忙吧,马上结帖!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货