Skip to content

Instantly share code, notes, and snippets.

@rootux
Created November 29, 2012 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rootux/4169979 to your computer and use it in GitHub Desktop.
Save rootux/4169979 to your computer and use it in GitHub Desktop.
A CodePen by Gal Bracha.
Try searching for 'here' usually you won't find it with normal Chosen.<br>
My fork that splits by '-' char you can find it. Try it out
<br><br><br>
<select id="chosen">
<option>search-with-some-more-info</option>
<option>you-can-search-any-string-in-here</option>
<option>this is a result</option>
<option>this-is-a-result</option>
</select>
<br><br><br>
Fork is here:
<a href='https://raw.github.com/rootux/chosen/'>https://raw.github.com/rootux/chosen/</a>
$().ready(function() {
$('#chosen').chosen();
});
#chosen {
width: 300px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment