Here is a great example of cascading dropdowns that is populating state dropdown on change of country dropdown.Its very easy to integrate, light weight, platform independent doesn’t matter your application is in php or ASP.net or other,it will work as it is using core Javascript.
Just include javascript file as:

js_countries

[crayon-5c0e7755b14a6428792566/]
And put following html code in Body section:
[crayon-5c0e7755b14ab009560478/]
And that’s it, you will see two dropdowns on your page, one of country and other one is of states;

Example:
[crayon-5c0e7755b14ad416565814/]

LIVE DEMO

DOWNLOAD CODE:

[sociallocker id=”450″]

Download

[/sociallocker]

–Populate State Dropdown onChange of Country Dropdown using Javascript–