harvesthq / chosen

Deprecated - Chosen is a library for making long, unwieldy select boxes more friendly.
http://harvesthq.github.io/chosen/
Other
21.85k stars 4.1k forks source link

Enhanced Search / Custom Search #3117

Open ghost opened 3 years ago

ghost commented 3 years ago

Select Chosen is working great as expected but based on things from end users I would like to define any custom search or if anything implemented already please let me know.

My Option Values Gene Eva Convenshun Amanda Hug Polly Ester Undawair Polly Wannakrakouer

When I start search with work "Polly " I got 2 results: Polly Ester Undawair Polly Wannakrakouer

But when continue to "Polly Und" I would need "Polly Ester Undawair" i.e. split words search.

I have tried "search-contains" but no luck, please let me me how ca I do that or any custom method I can implement?

https://jsfiddle.net/54k0rLoz/