Spectrum From Master

A working demo of the latest version of spectrum colorpicker

HTML

<link rel="stylesheet" href="http://bgrins.github.com/spectrum/spectrum.css">
<script src="http://bgrins.github.com/spectrum/spectrum.js"></script>
<a href='http://bgrins.github.com/spectrum'>&lt;--Spectrum Homepage</a>

<input name="tinta" id="css_1" value="rgb(0, 0, 0)" />

CSS

.full-spectrum .sp-palette {
max-width: 200px;
}

JavaScript

$("#css_1").spectrum({
                    preferredFormat: "rgb"
                    ,showAlpha: false
                    ,showPalette: true
                    ,togglePaletteOnly: true
                 //   ,color: $(this).val() // spectrum tries to find the value, no need for explicit setting here
                    ,showSelectionPalette: true
                    ,localStorageKey: "spectrum.hydrogen"
                    ,maxSelectionSize: 9
                    ,showInitial: true
                });

$("#css_1").show();