本文摘自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超链接字体颜色怎么改
html中如何调整图片之间的间距
html怎样设置背景颜色?html背景颜色代码详细分析
h5与传统html的区别
html中设置字体的属性有哪些
表格标签以什么开始以什么结束
html meter标签怎么用
br在html里是什么
html单选按钮默认选中怎么做?input标签的单选按钮用法实例
html的<u>标签有什么功能
更多相关阅读请进入《下拉菜单》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » 怎么实现html 可输入下拉菜单