Farbtastic is a jQuery plug-in that can add one or more color picker widgets into a page through JavaScript. Each widget is then linked to an existing element (e.g. a text field) and will update the element’s value when a color is selected.

Farbtastic uses layered transparent PNGs to render a saturation/luminance gradient inside of a hue circle. No Flash, no pixel sized divs.
Uses
- Include farbtastic.js and farbtastic.css in your HTML:
<script type="text/javascript" src="farbtastic.js"></script> <link rel="stylesheet" href="farbtastic.css" type="text/css" />
- Add a placeholder div and a text field to your HTML, and give each an ID:
<form><input type="text" id="color" name="color" value="#123456" ></form> <div id="colorpicker"></div>
- Add a ready() handler to the document which initializes the color picker and link it to the text field with the following syntax:
$(document).ready(function() {$('#colorpicker').farbtastic('#color'); });
References:
WebSite: http://acko.net/dev/farbtastic
Demo: http://acko.net/dev/farbtastic
Download: farbtastic12.zip





