Multiple Dropdown Lists Using jQuery, Ajax, MySQL and PHP
- 4.7
Brief Introduction
This is a short course designed to introduce you to how to use the jQuery AJAX method to populate a dropdown list.Description
This is a short course designed to get you started using the jQuery AJAX method to post data to a PHP script and work with the retrieved database records. It is a follow along style course, not one to teach you every aspect of PHP, jQuery or MySQL...there are other courses for that. This course is quite specific in its focus.
In the course you will learn how to create the database tables and populate with CSV files before learning how to use the jQuery AJAX method to post data to a PHP script to retrieve database records and populate a dropdown list. This is commonly seen when completing HTML forms and you have to select the country and the state will auto-populate from the selection.
Requirements
- Requirements
- You should be familiar with HTML, CSS, PHP, and MySQL
- You will need a PHP code editor and access to a MySQL database. I use Visual Studio Code and MAMP in the course. Any equivalent for your computer setup should be OK. Feel free to ask if unsure.