This is a jQuery plugin for selecting a state and city. For Massachusetts, Maine, and New Hampshire, the user selects a city from a dropdown list. For all other states, they can free-key the city.
The plugin relies on Chosen, a jQuery plugin that makes select boxes more user-friendly. It also uses the jQuery Validation plugin for validation.
$ git clone https://github.com/kcaran/jquery-cityentry.git
$ cd jquery-cityentry
$ npm install
$ npm run build
[ View the demo ] (http://www.kcaran.com/jquery-cityentry/index.html)
[ Github Repository ] (https://github.com/kcaran/jquery-cityentry)
[ Chosen project ] (https://harvesthq.github.io/chosen/)
[ jQuery Validation ] (https://jqueryvalidation.org/)