获取当前选择的SELECT 项的值
来源:互联网 发布:python compileall 编辑:程序博客网 时间:2024/06/04 23:20
<script type="text/javascript">
var getSelectValue = function(select) {
var idx = select.selectedIndex,
option,
value;
if (idx > -1) {
option = select.options[idx];
value = option.attributes.value;
return (value && value.specified) ? option.value : option.text;
}
return null;
}
</script>
<select id="jb51net" onchange="alert(getSelectValue(document.getElementById('jb51net')))">
<option value="123">123</option>
<option value="456">456</option>
</select>
- 获取当前选择的SELECT 项的值
- 获取select的选择值
- select 获取选择的值
- jquery---如何获取select下拉框当前选择的文本
- Jquery操作select获取当前选择项的文本及事件绑定
- jquery获取select的选择值
- jquery获取select选择的显示值
- jquery获取和选择select的值
- jquery获取select选择的显示值
- 用jquery如何获取select元素中当前选择的文本内容
- 如何获取当前 select 元素的值
- 嵌入式 php中select控件当前值的获取
- js获取select当前选项的内容
- jquery 获取select的选择值的写法
- select 设置下拉列表的选中项的值 显示当前日期 年份 月份 下拉列表获取当前日期
- JQUERY获取 SELECT 选择项的文本内容
- js获取select选择部分的文本、值
- jQuery获取select选择的文本与值
- windows下mysql5.1忘记root密码解决方法
- Linux中进程、线程和fork()
- 在My Sql中建触发器
- array.sort()
- 文本框添加背景图的各种问题
- 获取当前选择的SELECT 项的值
- 用Bat来初始化数据库和目录
- 调用线程必须为 STA,因为许多 UI 组件都需要
- Visual Studio 2008操作技巧
- 并查集(union-find set)hdoj/hdu 1232畅通工程
- 封包与拆包
- DLL编写教程
- Failed to create the requested registry key key: installer error: 1021
- 从零开始学习