您的位置:程序门 -> java -> web 开发



jsp中如何取得combox的当前值


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


jsp中如何取得combox的当前值
发表于:2007-09-24 11:40:59 楼主
<td   class= "text4 "> 飯店名
<logic:present   name= "cmb_search_list_session ">
<bean:define   id= "resultlist "   name= "cmb_search_list_session "   />

<html:select   property= "hanid "   style= "width:130px; "   onchange= "ryoriselect() ">
<html:options   collection= "resultlist "   labelproperty= "hanten "   property= "hanid "> </html:options>
</html:select>
</logic:present>
</td>
我已经在属性中定义了onchange属性ryoriselect()函数,但是不知道javascript中具体如何实现。请教高手指点
发表于:2007-09-30 08:38:571楼 得分:0
问题有些奇怪
是这个意思吗

function   ryoriselect()
{
    alert(this.value);
    //alert(this.options[this.selectedindex].value);
}
发表于:2007-09-30 08:43:142楼 得分:0
你要实现什么呢?


快速检索

最新资讯
热门点击