How would I populate a select dropdown whose values are dependent on what is selected in the parent dropdown. E-g, First dropdown has country names in it, and on selection the next dropdown would load the corresponding states of that country, selected in first dropdown. And then say I have a third dropdown, where I am putting the image of that particular state, that corresponds to what is selected in second dropdown.
How can this be done in JQuery.
E-g
Country>>>>> States>>>>>>Map of This State
Look at this plugin: cascade
You can have a few css classes for each state those flag you want to show with appropriate background image and swith class on second dropdown change event: