There are multiple ways to populate dropdown in ASP.NET MVC. How to do dynamic dependent select box using Jquery, Ajax, PHP and Mysql. Go to REST Country website then click on All section to get the all country API section and copy the all country API URL as marked below picture. Inside this article we will see the concept of Laravel 8 Dynamic Dependent Dropdown Using jQuery Ajax. 7. Example:- Call a local script on the server /api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp 's html with the returned text. Select All and Delete using ASP.NET MVC and jQuery Ajax. If your remote endpoint just returns the list of all possible options, you may be interested in using Select2's support for data arrays. Let’s add the below code in the index.php file that sends country_id and state_id to the server-side script (action.php) via Ajax request when dropdown option value is selected. 1. First of all, create two files, for example form.php and process.php. Select box merupakan salah satu komponen yang paling sering digunakan dalam menampilkan data pada aplikasi web. For remote data sources only, Select2 does not create a new