本文摘自PHP中文网,作者php中世界最好的语言,侵删。
这次给大家带来怎么实现html 可输入下拉菜单,实现html 可输入下拉菜单的注意事项有哪些,下面就是实战案例,一起来看一下。1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
echo '
<form name="DDForm" method="GET" action="">
<div style="position:relative;">
<span style="margin-left:100px;width:18px;overflow:hidden;">
<select style="width:180px;margin-left:-100px" onchange="this.parentNode.nextSibling.value=this.value" name="hh">
<option value="汽车">汽车 </option>
<option value="火车"> 火车 </option>
<option value="飞机"> 飞机 </option>
</select>
</span><input name="box" style="width:160px;position:absolute;left:0px;">
<input value="提交" name="submit" type="submit"/>
</div>
</form>';
$aa=$_GET['hh']."111";
$bb=$_GET['box']."222";
echo $aa;
echo "</br>";
echo $bb;
?>
</body>
</html>
|
要获得可输入下拉菜单的值,只要获得输入框的值即可。
注意:
阅读剩余部分
相关阅读 >>
bootstrap如何触发下拉菜单
bootstrap如何制作下拉菜单
jsp和html之间有什么区别
html的正式名称是什么?
如何理解html、css、javascript之间的关系?
html和css是什么语言?
html article标签怎么用
html aside标签怎么用
html audio标签怎么用
html b标签怎么用
更多相关阅读请进入《下拉菜单》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » 怎么实现html 可输入下拉菜单