I almost never use jquery and this jquery plugin helps in completing my current project. I have gone throughout the docs and haven't been able to find a javscript way to use this. Even though the docs mention about a 'javscript color picker' -- there isn't one yet.
I configured the plugin to my needs... now i need to have a native js version of this.
$('#color-picker').spectrum({
type: "component",
showPalette: false,
togglePaletteOnly: false,
showAlpha: false,
allowEmpty: false,
showInitial: true,
color: "#f00",
change: function (color) {
console.log(color.toHexString())
}
});
Official docs - spectrum color picker