是不能编辑,但是可以凑出类似效果
---------------------------------------------
<html>
<head>
<title>可编辑的下拉框</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<select onchange="mShow.value=this.options[this.selectedIndex].value;mShow.focus();" name="mySelect" style="width:300px;height:20px;top:50px;left:50px;position:absolute;clip:rect(0 300 20 280)">
<option value="Damboo">Damboo</option>
<option value="[email protected]">[email protected]</option>
</select>
<input type="text" name="mShow" style="width:281px;position:absolute;top:50px;left:50px;z-index:1;border-right:0px solid;">
</body>
</html>
---------------------------------------------
<html>
<head>
<title>可编辑的下拉框</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<select onchange="mShow.value=this.options[this.selectedIndex].value;mShow.focus();" name="mySelect" style="width:300px;height:20px;top:50px;left:50px;position:absolute;clip:rect(0 300 20 280)">
<option value="Damboo">Damboo</option>
<option value="[email protected]">[email protected]</option>
</select>
<input type="text" name="mShow" style="width:281px;position:absolute;top:50px;left:50px;z-index:1;border-right:0px solid;">
</body>
</html>
解决方案 »
- 求 document.getElementById("brandul").getElementsByTagName("li") 里面的具体值,请看代码更清楚
- 达人帮忙看看哪里错了,急
- 从xml中取内容
- 关于函数
- 一个函数的扩展,看的很郁闷
- 如何添加动态table中的数据到数据库?
- 模态窗口使用时的问题
- 程序员 闲暇时做什么能挣点外快啊。弄个钓鱼网站行吗
- 在IFrame中使用<a href="javascript:XXXFunction();" target="_parent" style="text-decoration></a>
- 200分!可否用Javascript不刷新传递参数到Web服务器,再不刷屏接收返回的参数?在线等!
- 数组存对象访问问题?
- 请教一个问题
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>下拉框+文本框</title>
</head><body>
<table>
<tr>
<td style="font-size: 12px;">
既可以输入新的信息,又可以从下拉框中选择:
</td>
<td valign="top">
<select name="myselect"
style=" width:220; position:absolute;clip: rect(0 100% 90% 201)"
onchange="document.getElementById('txt').value=this.value">
<option value=""> </option>
<option value="蓝色经典"> 蓝色经典 </option>
<option value="织梦地带"> 织梦地带 </option>
<option value="联盟论坛"> 联盟论坛 </option>
<option value="无忧脚本"> 无忧脚本 </option>
</select>
<input name="txt"
type="text"
size="30"/>
</td>
</tr>
</table></body>
</html>