当前位置: 代码迷 >> Web前端 >> 可以输入的上拉框
  详细解决方案

可以输入的上拉框

热度:74   发布时间:2012-11-09 10:18:48.0
可以输入的下拉框

不多说,直接上代码:

?

<html>  
<head>  
<title>可输入的select下拉框</title>  
</head>  

<body >  
<div style="position:relative;  padding: 0px;margin: 0px;">
	  <input name="salesCode" id="salesCode" style="position:absolute;top:-10; width: 120px; height:21px; left:0px; " onClick="this.value=''">
	  <span id="selectInput">
	   		<select name="selectInput" style="position:absolute;top:-10;width:120px;height:20px;left:0px; clip: rect(0 180 132 101)"  onchange="document.getElementById('salesCode').value=options[selectedIndex].text;">
			<option value=""></option>
				
					<option value='1'>1</option>
				
					<option value='2'>2</option>
				
					<option value='3'>3</option>

			</select>
	  </span>
</div>  
</body>  
</html>  

?

  相关解决方案