Chosen matches words from beginning by default and if we add the following option, it would match the words even from middle:

{search_contains: true}

But I would like to implement fuzzy matching using chosen in a similar manner which Sublime Text does. How can this be achieved?

有帮助吗?

解决方案

According to: https://github.com/harvesthq/chosen/issues/858 this feature still does not found the way into choosen's core. Try the fork including this feature: https://github.com/eliasdorneles/chosen - of course I did not test it and relay on their talk.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top