Skip to content

drmproductions/chosen-dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chosen Dynamic

This is an extension to Chosen, which dynamically creates an option element as you type. It's useful when you want to provide a user with several predefined options, but want to also give them the option to add their own, without needing another input field.

Note: This currently only supports jQuery. Let me know if you'd like prototype support, or feel free to submit a pull request!

Usage

$('.my-select').chosen().chosenDynamic({
  debounce: 500
});

API

$.chosenDynamic(options:Object)

Options

{
  // how long to wait before updating the select, default is 500
  debounce: 500
}

About

Extension to Chosen https://github.com/harvesthq/chosen, dynamically creates an <option> as you type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published