1) Attached to a field with hex format specified via options:
<input type="text" class="demo1" value="#5367ce" /> <script> $(function(){ $('.demo1').colorpicker(); }); </script>
Attached to a field with the rgba format specified via data tag:
As a component:
Using events to work with the color:
Horizonal mode:
Inline mode:
Enabled / disabled
Destroy plugin instances Create instances again