jsp页面可输入下拉框实现

时间:2022-04-06 20:29:00
<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>