Basic color picker example




<html>
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<div id="color-picker"></div>

<script>
var color = jSuites.color(document.getElementById('color-picker'), {
    value: '#f3e5f5',
    closeOnChange: true,
});
</script>

<input type='button' value="Open picker" onclick="color.open()">
<input type='button' value="Change color" onclick="color.setValue('#009688')">

</html>