Code
$(document).ready(function() {
var updatePreview = function() {
var color = $(this).chromoselector("getColor");
$(this).css({
"background-color": color.hex,
"color": color.getTextColor().hex,
"text-shadow": "0 1px 0 " + color.getTextColor().getTextColor().hex
});
};
// Initialise the color picker
$("#basic2").chromoselector({
target: "#picker",
autoshow: false,
width: 285,
preview: false,
create: updatePreview,
update: updatePreview
}).chromoselector("show", 0);
});