当前位置: 代码迷 >> JavaScript >> 怎么允许编辑select控件
  详细解决方案

怎么允许编辑select控件

热度:104   发布时间:2012-02-24 16:30:38.0
如何允许编辑select控件?
rt

------解决方案--------------------
不可,只可模拟
<div style= "position:relative; ">
<span style= "margin-left:100px;width:18px;overflow:hidden; ">
<select style= "width:118px;margin-left:-100px " onchange= "this.parentNode.nextSibling.value=this.value ">
<option value= "football "> 足球 </option>
<option value= "basketball "> 焕球 </option>
<option value= "badminton "> 羽毛球 </option>
</select> </span> <input name= "box " style= "width:100px;position:absolute;left:0px; ">
</div>

------解决方案--------------------
http://www.jscode.cn/JsHtml/Js530.htm 看看
------解决方案--------------------
http://www.never-online.net/code/neverModules/simulateSelect/
  相关解决方案