jQuery jPicker colorpicker: How to convert from 8 digit (w Transparency) to standard 6 digit hex?
<p>I've got a jPicker installed and running fine; its a pretty sweet script.</p>

<p>However, the value it returns to my input box is 8 digit hex. I need it to return 6 digit hex.</p>

<p>Rather than post-process the 8 digit into 6, I'd rather just hack into the script and force 6 digit. Alternately, I'd be ok with hooking into the change event of the jPicker to intercept the value its sending to the input element and doing the conversion there just before it updates the input with the hex.</p>

<p>Here's my code:</p>

<pre><code>$(function() {
    $('#myThemeColor').jPicker(); /* Bind jPicker to myThemeColor input */
    $("#carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 6,
        speed: 700
    });
</code></pre>

<p>And here's the code I'm working with to intercept the myThemeColor input's change event, but its not firing at all.</p>

<pre><code>$('#myThemeColor').change(function()
    {
alert(this.val()); /* does not fire on any action */)
    if($(this).val().length == 8)
        {

        $(this).val(function(i, v) 
            {
                return v.substring(0, 6); 
            });
        }
    });
</code></pre>
