本文摘自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>
|
要获得可输入下拉菜单的值,只要获得输入框的值即可。
注意:
阅读剩余部分
相关阅读 >>
html文件如何添加音乐
网页设计是要学 php 还是 java
html中的onfocus和onblur是什么属性?怎么使用?
html表格行怎么隐藏
html中怎么让表格居中
html里关于表格table嵌套的注意事项
html div标签怎么用?这里有div使用方法的实例
html !doctype标签怎么用
html如何转换为pdf
html的<u>标签有什么功能
更多相关阅读请进入《下拉菜单》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » 怎么实现html 可输入下拉菜单