bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

Can't change the output when using in a form #433

Closed orestisrodriguez closed 8 years ago

orestisrodriguez commented 8 years ago

Hello,

I am using spectrum in a form that submits its contents to a php script. How can I output a hex value instead of a hsv?

Thanks,

bgrins commented 8 years ago

You can set the preferredFormat option to change how it sets the value in the input: http://bgrins.github.io/spectrum/#options-preferredFormat