jquery-simplecolorpicker
jquery-simplecolorpicker copied to clipboard
Disable Color Picker
Is there any possibility to disable the color picker? I could not figure out how to do it.
Setting disabled attribute does not work: <select name="colorpicker" disabled>
You can destroy it instead:
$('select[name="colorpicker"]').simplecolorpicker('destroy');
Destroying the color picker replaces the color icon with a standard html combobox. That's not I want to do. I want to disable the control so that the picker is not available. Later on, the picker could be enabled again. Is it somehow possible with the current implementation?
I see what you want: if attribute disabled is present, grey out the inline colors/disable the picker + disable click I won't have time in the next few weeks to implement this feature.
I would like this same feature.
this worked for me $('.simplecolorpicker').css("pointer-events", "none");