PitPik / colorPicker

Advanced javaScript color picker and color conversion / calculation (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)
http://www.dematte.at/colorPicker/
MIT License
570 stars 136 forks source link

Reset all pickers with a single button click [jQuery version] #52

Open noum opened 7 years ago

noum commented 7 years ago

Hi,

I'm using the jQuery version and have multiple pickers on the page, like:

var cp_picker = cp_input.colorPicker({ ... }),
cp_picker2 = cp_input2.colorPicker({ ... }),
...

Then I would like to add a <input type="button" ... /> at the bottom of the page to reset all these pickers to their default colors.

How this can be acheived please ?