How to implement html input drop-down menu

php中世界最好的语言
Release: 2018-02-02 09:45:16
Original
3082 people have browsed it

This time I will show you how to implement html input drop-down menu, what are the precautions to implement html input drop-down menu, the following is a practical case, let’s take a look .

 
 
 

'; $aa=$_GET['hh']."111"; // select 下拉菜单的值 $bb=$_GET['box']."222"; // 输入框的值 echo $aa; echo "
"; echo $bb; // 要获得可输入下拉菜单的值,只要获得输入框的值即可。 ?>
Copy after login

To get the value that can be entered into the drop-down menu, just get the value of the input box.
Note:

 
Copy after login

This line must be in one line and cannot be written as

 
Copy after login

After the line break, the value of the drop-down menu cannot be displayed in the input box.
You can also automatically select matching menu values ​​based on the input content.

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

How to operate the viewport in the meta tag to control the css properties of the device screen

Radio selection and How to add styles to images for multi-select buttons

There are several ways to disable form controls in HTML

How many buttons are there? A Click response method

How to solve the problem of a blank line above and below the form after inserting it

The above is the detailed content of How to implement html input drop-down menu. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!