miket-dev / multiselect

Pure js multiselect implementation
MIT License
38 stars 30 forks source link

Disable and enable #7

Closed ambatidilip closed 4 years ago

ambatidilip commented 4 years ago

How can i disable and enable the control using multiselect. i have tried $('#id').prop('disabled', true) but not working

miket-dev commented 4 years ago

Added setIsEnabled method, which accepts boolean value, indicating whether this control is enabled or not. Refer to demo and readme for details.

Farufon commented 3 years ago

I am getting this error in my rails .erb page.

If I change the extension to .html, then it works.

 Uncaught TypeError: document.multiselect is not a function

What am I doing wrong?