Chosen is a library for making long, unwieldy select boxes more friendly.
 
 
 
 
Go to file
Patrick Filler d9ae47eda4 Update version number to 0.9.3
- Calculate initial width based on OuterWidth, not Width (jQuery version)
- Options array implemented for jQuery / Prototype version
- Added 'no_results_text' option to override default "No Matches" text
- prototype version not created on initial load to more closely resemble jQuery version
2011-09-12 17:56:54 -04:00
chosen Update version number to 0.9.3 2011-09-12 17:56:54 -04:00
coffee Make the prototype version more like the jQuery version (doesn't sniff for a class any longer) 2011-09-12 17:48:38 -04:00
.gitignore Remove DS_Store from repository and add to gitignore 2011-07-08 15:36:35 -04:00
Cakefile Better report compilation errors during build 2011-08-19 11:41:59 -04:00
LICENSE.md Update License Info 2011-07-13 15:42:57 -04:00
README.md Don't update VERSION, please. 2011-07-31 22:54:53 +03:00
VERSION Update version number to 0.9.3 2011-09-12 17:56:54 -04:00
example.html Make the prototype version more like the jQuery version (doesn't sniff for a class any longer) 2011-09-12 17:48:38 -04:00
example.jquery.html Update example file to jQuery 1.6.3 2011-09-12 17:55:34 -04:00

README.md

Chosen

Chosen is a library for making long, unwieldy select boxes more user friendly.

  • jQuery support: 1.4+
  • Prototype support: 1.7+

For documentation, usage, and examples, see:
http://harvesthq.github.com/chosen

Contributing to Chosen

Contributions and pull requests are very welcome. Please follow these guidelines when submitting new code.

  1. Make all changes in Coffeescript files, not JavaScript files.
  2. For feature changes, update both jQuery and Prototype versions
  3. Use 'cake build' to generate Chosen's JavaScript file and minified version.
  4. Don't touch the VERSION file
  5. Submit a Pull Request using GitHub.

Using CoffeeScript & Cake

First, make sure you have the proper CoffeeScript / Cake set-up in place.

  1. Install Coffeescript: the CoffeeScript documentation provides easy-to-follow instructions.
  2. Install UglifyJS: npm -g install uglify-js
  3. Verify that your $NODE_PATH is properly configured using echo $NODE_PATH

Once you're configured, building the JavasScript from the command line is easy:

cake build                # build Chosen from source
cake watch                # watch coffee/ for changes and build Chosen

If you're interested, you can find the recipes in Cakefile.

Chosen Credits

Notable Forks