Skip to content

This is an example using Chosen, a jQuery plugin that makes select boxes more user-friendly. For Massachusetts and New Hampshire, the user selects a city from a dropdown list. For all other states, they can free-key the city. The example also uses the jQuery validator plugin for validation.

Notifications You must be signed in to change notification settings

kcaran/jquery-cityentry

Repository files navigation

jquery-cityentry

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.

Installation

$ git clone https://github.com/kcaran/jquery-cityentry.git
$ cd jquery-cityentry
$ npm install
$ npm run build

Demo

[ View the demo ] (http://www.kcaran.com/jquery-cityentry/index.html)

Resources

[ Github Repository ] (https://github.com/kcaran/jquery-cityentry)

[ Chosen project ] (https://harvesthq.github.io/chosen/)

[ jQuery Validation ] (https://jqueryvalidation.org/)

About

This is an example using Chosen, a jQuery plugin that makes select boxes more user-friendly. For Massachusetts and New Hampshire, the user selects a city from a dropdown list. For all other states, they can free-key the city. The example also uses the jQuery validator plugin for validation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages