harvesthq/chosen — pull request #520 by shezarkhani (2012-03-06 18:25:50+00:00)
Title: Adding new options on the fly

Added a new option "add_new_options". If it is set, when a result is not found chosen will treat the new entry as an option and adds it to the selected list. work both on multiple select and single select.

e.g.

$('#.chosen-select').chosen({add_new_options: true});