I am using the jQuery Chosen.js plugin with a long list of options. Sometimes people look for abbreviations that appear in the value attribute, but not in the human-readable text displayed for the option . Is there a way to instruct Chosen.js to look up values ββas well as text options?
For example, given this option in the selection box ...
<option value="TX">Texas</option>
... I want Chosen.js to display this option, even if the user simply types "tx" and nothing else. By default, neither Chosen.js nor Select2 show the result in this case.
source share