Created
November 29, 2012 15:57
-
-
Save rootux/4169979 to your computer and use it in GitHub Desktop.
A CodePen by Gal Bracha.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$().ready(function() { | |
$('#chosen').chosen(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#chosen { | |
width: 300px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment