selectize.js
selectize.js copied to clipboard
How to change the color of certain selectize dropdown items only
Hi all. I'm trying to change the text color of certain selectize items based on a value I retrieve from the database (if the value is 1, the color should be green; otherwise red). Is there anyway to do this? I've tried a bunch of things but I can't seem to get it to work.
Let me know if there is any way to do this, thanks.
Take a look at the available rendering optinos: https://github.com/brianreavis/selectize.js/blob/master/docs/usage.md#rendering
Example: http://jsfiddle.net/f8pwf/
Thanks for fielding this, @enoshixi!