I want to limit minimum 3 characters for Selectize tags input. Is it possible? is there any event in selectize?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Here is a dirty workaround that works for me, hope it helps.
Download selectize.js plugin
Include jquery and
Use this code, It will work.
$('#your-id').selectize({ maxItems: 3 });
I had the same problem. Its as Rory has mentioned, via plugins.
Its actually quite simple.
The official example for tag minimum word length filtering you can find here
Another thing that you can do is filter the search itself
Hope that helps :)
There is a working example in the docs. See the "Remote Source — Rotten Tomatoes" example. I adapted to something like this: