github harvesthq/chosen v0.9.11
Retain Select Classes, Disable Split Words

latest releases: v1.8.7, v1.8.6, v1.8.5...
10 years ago

Add an option to inherit initial select classes

When enabled, this option will grab any class names off the initial select and add them to Chosen's container div:

Take:

<select id="copyClasses" classes="this-class-comes-with">
  ...
</select>

Run:

$("#copyClasses").chosen({ inherit_select_classes: true; });

Get:

<div id="copyClasses_chzn" class="... this-class-comes-with">
  ...
</div>

(#917)

Add an option to disable searching split words

By default, Chosen will attempt to search across words by splitting option text at a space. For example, a search of "Stat" will match "United States". This can now be disabled:

$("select").chosen({ enable_split_word_search: false });

(#824, #940)

Don't miss a new chosen release

NewReleases is sending notifications on new releases.