获得select内容
来源:互联网 发布:flash小游戏源码下载 编辑:程序博客网 时间:2024/05/29 13:20
改变后获得
var typeindex=document.frm.c_type.selectedIndex;
document.frm.ctype.value=document.frm.c_type.options[typeindex].text;
改变时获得
<html>
<head>
<script language="javascript">
function func(obj){
alert(obj.options[obj.selectedIndex].innerText);
}
</script>
<title>test</title>
</head>
<body>
<select name="select1" onchange="func(this);">
<option value="1">一</option>
<option value="2">二</option>
<option value="3">三</option>
<option value="4">四</option>
</select>
</body>
</html>
- 获得select内容
- 获得select内容而不是value值
- jquery获得select 中当前文本框的内容
- 可输入可选择的下拉框(input select)并且输入框获得下拉的内容
- 获得文件内容
- 获得元素的内容
- 获得复制的内容
- 编辑器内容获得
- 解析pdf,获得内容
- c++获得文本框内容
- Spring获得properties内容
- 移动、交换SELECT内容
- select读取数据库内容
- select修改表内容
- form select Multiple获得 【转】
- 获得<S:select>中的listValue
- JQuery获得select选中索引
- Juery 获得select的值
- hibernate缓存
- 使用数据库Data文件的MDF、LDF在DOS中创建数据库
- 子页面调用父页面中js方法
- MFC学习笔记三
- Symbian环境搭建之事必躬亲篇
- 获得select内容
- 获取页面传过来的所有参数
- sql练习
- slideAd(id,nStayTime,sState,nMaxHth,nMinHth)自动收缩
- 很有创意的UI设计工具Balsamiq Mockups
- 模态窗口中SESSION值传递的问题
- 在网页中定位DIV (CSS+DIV版)
- 背光设置方法 hal
- 设计模式的概述