There was a need recently to develop a small object that generated a Drop-down form based on data from AJAX requests.
This demand often arises, such as the choice of addresses around the world, the provinces and cities of all the countries in the
---------------Course Catalogue---------------137.[php second quarter] The 18th chapter is the Object-oriented foundation (1). avi138.[php second quarter] The 18th chapter is the Object-oriented foundation (2). avi139.[php second quarter] the 19th
JS get Select drop-down box the value value of each option is relatively easy, but getting the text value is a bit of a hassle, for a beginner JavaScript novice, may not be able to find a moment, then please look at the method of this article, Take
Realize
The first type of PHP drop-down box implementation method:
? PHP
Submit drop-down box;
The result of a direct full trigger onchange event
$ ID =$_get[' myselect ';//MyselectFor the name of Location.herf?id;
echo $id;
The
select-dropdown list Selection plugin includes dropdown selection picture, grid, dropdown box option search, multiple label editing, add different icons for each option in the dropdown box
1 Imageselect is a jquery plugin that allows
PHP (PHP training PHP Tutorial) (hypertext Preprocessor) is an HTML-embedded language, but also the most popular web programming language. It supports a variety of back-end databases, with almost all of the current database systems covered. At the
The solution to get the value and text values of the dropdown box at the same time:
Add a tag, the user selects an item and then assigns the item's text to him
Then accept the page to get the P variance to get the corresponding text value
Form
Examples of PHP and Ajax MySQL databases
Examples of AJAX databasesIn the following example of Ajax, we will demonstrate how Web pages can be sold to information from a MySQL database using AJAX technology.
Examples of AJAX databasesIn
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.