jsp頁面可輸入下拉框實現
阿新 • • 發佈:2019-02-17
<HTML>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE>可輸入的下拉框</TITLE>
</HEAD>
<BODY >
<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="內容01">內容01</option>
<option value="內容02"> 內容02</option>
<option value="內容03"> 內容03</option>
</select></span><input name="box" style="width:100px;position:absolute;left:0px;">
</div>