On Change Input Select Fetch All Country States Using jQuery Ajax

Input select already has a list of all countries within <option> tags. I used a free API to fetch all states. You can also fetch different info according to the countries.