javascript 下拉列表 自动取值 无需value
来源:互联网 发布:国际经济合作 数据 编辑:程序博客网 时间:2024/09/21 06:36
<select id="applyType" name="$!{status.expression}" class="inp" onchange="receiptAddApplyType()" style="width:150px;"> #foreach($item in ${applyTypes}) <option value="$!{item.value}" #if($!{item.value} == $!{status.value} ) selected #end >$!{item.name}</option> #end </select>
function receiptAddApplyType(){var s=document.getElementById('applyType');alert(s[s.selectedIndex].text);}
不做解释,靠谱好用,自己试试
0 0
- javascript 下拉列表 自动取值 无需value
- .NET里面的下拉列表居然不能对value值遍历——取指定item的value值
- 多级联动,下拉列表取text及value值的两种方法(传统方法+JQuery方法)
- JavaScript取数组数据动态生成下拉列表
- 下拉列表框设置和取值
- 下拉列表取值的小技巧
- jsp下拉列表取值问题
- 页面下拉列表赋值和取值
- 【JavaScript】下拉列表select中在value传递多个值,取出其option显示值,并应用此作为导航
- select下拉框value和option的取值顺序
- ComboBox自动匹配下拉列表中的值
- 下拉列表自动跳转
- javascript 取得下拉列表的值
- javascript下拉列表框取值
- [JavaScript]操作下拉列表
- jquery取DropDownList下拉列表框选定项的值
- Struts2与下拉列表绑定的取值问题
- Struts2与下拉列表绑定的取值问题
- 自定义QMenu图标大小
- NetBeans工具学习之道:NetBeans的(默认)快捷键
- 你最需要注意的11条要点for C++
- HDU 2047 阿牛的EOF牛肉串
- RunTime之三
- javascript 下拉列表 自动取值 无需value
- SDN入门资料
- 数据库系统概论-[01]关系型数据库标准SQL
- Effective C# Item28:避免强制类型转换
- eclipse中访问不了tomcat首页server Locations变灰无法编辑
- RunTime之四
- 函数指针
- Python入门(一,Ubuntu环境搭建)
- 大家好,我是新来的