I am working on a library/framework for my project. I would like to do a Country selector,
User picks USA it then populates a States box with all states
User p
Google for javascript country state dropdown
and you'll find lots of solutions. The first one at http://javascriptsource.com/forms/country-state-drop-down.html already seems pretty reasonable. It stores all the data in the JavaScript code—after all, there are not that many combinations. For countries where it lacks state/region information, the user can enter an arbitrary region.