Open Source Country Region Selector in JS

后端 未结 1 731
粉色の甜心
粉色の甜心 2021-01-27 03:18

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

相关标签:
1条回答
  • 2021-01-27 03:30

    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.

    0 讨论(0)
提交回复
热议问题