Belelros/jQuery-ColorPicker — pull request #8 by ss44 (2013-03-08 16:58:54+00:00)
Title: updated change method to return args

Made a change so that the onChange now provides an additional param of the element, similar to select, making it possible to do a live color select using the actual element instead of relying on a dom request.

ie.

$('.colorSelector').ColorPicker({
onChange : function(hsb, hex, rgb, el) {
$(el).find('div').css('backgroundColor', '#' + hex);
$(el).val(hex);
$(el).data( hex );
}
});