带提示的下拉框
来源:互联网 发布:章鱼直播软件下载 编辑:程序博客网 时间:2024/05/21 09:15
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>测试js</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" language="javascript">...
var selIndex;
function indx()...{
selIndex=document.getElementById('list1').options.selectedIndex;
}
function chk(val)...{
var selIndex2=document.getElementById('list1').selectedIndex;
if(confirm('你真的要选择'+val))...{
document.getElementById('list1').options[selIndex2].selected='selected';
selIndex=selIndex2;
return true;
}else...{
document.getElementById('list1').options[selIndex].selected='selected';
}
}
</script>
</head>
<body onLoad="indx()">
<form method="get" >
<select size="1" name="list1" id="list1" onChange="chk(this.options[this.options.selectedIndex].text)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
</body>
</html>
<html>
<head>
<title>测试js</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" language="javascript">...
var selIndex;
function indx()...{
selIndex=document.getElementById('list1').options.selectedIndex;
}
function chk(val)...{
var selIndex2=document.getElementById('list1').selectedIndex;
if(confirm('你真的要选择'+val))...{
document.getElementById('list1').options[selIndex2].selected='selected';
selIndex=selIndex2;
return true;
}else...{
document.getElementById('list1').options[selIndex].selected='selected';
}
}
</script>
</head>
<body onLoad="indx()">
<form method="get" >
<select size="1" name="list1" id="list1" onChange="chk(this.options[this.options.selectedIndex].text)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
</body>
</html>
- 带提示的下拉框
- 带搜索的下拉框
- 动态提示的下拉框
- 动态提示的下拉框
- 动态提示的下拉框
- 带复选框的下拉框
- 带编辑的下拉框asp.net
- 带chekcbox功能的下拉框
- 带搜索功能的下拉框select
- 带输入框的下拉控件
- jquery实现带搜索的下拉框
- 带模糊查询的select下拉框
- 实现带复选框的下拉列表
- 带搜索框选择的下拉列表
- 带搜索功能的下拉框
- 仿google的下拉提示框
- 仿Google的输入下拉提示框
- QT编辑框的下拉提示
- 正则
- no title and no keyword
- 节奏是成败的关键
- [Junit]Understanding unit test framework
- 闲言碎语不要讲,开张了!
- 带提示的下拉框
- 透析PHP的配置文件
- Linux Resin Install
- php字符串操作
- 沉默
- Php高手带路--问题汇总解答
- IT职场:IT人才市场最看重的12项技能
- xp,windows2000/2003/2008注册表里ipv6地址的位置
- ADO.NET五大对象