I have implemented Selectize on my HTML form. However a dropdown only becomes active when the "enable" checkbox is clicked. I know there is a disable
property on the Selectize object but I dont know how to use it when the checkbox is clicked.
I have tried adding the disabled
class to the Selectize div
element but that does not work either.
Any help will be well appreciated.
Thanks