jQuery plugin: Colorpicker

Posted by New Developper on Stack Overflow See other posts from Stack Overflow or by New Developper
Published on 2010-05-06T02:02:55Z Indexed on 2010/05/06 2:08 UTC
Read the original article Hit count: 368

Filed under:
|
|
|

Hey all, I'm using this colorpicker (http://www.eyecon.ro/colorpicker) and am trying to capture the hex value so that I can use it on the server side to store the selected color. If you check out the link provided, I'm using the last option:

$('#colorSelector').ColorPicker({

color: '#0000ff', onShow: function (colpkr) { $(colpkr).fadeIn(500); return false; }, onHide: function (colpkr) { $(colpkr).fadeOut(500); return false; }, onChange: function (hsb, hex, rgb) { $('#colorSelector div').css('backgroundColor', '#' + hex); } });

My problem is that I can't seem to get the hex value from it...I've tried simply calling the name of the input to get its value, but it won't work (when you click away to make the colorpicker disappear, the input changes to 'style="display:none;"' so I can't get anything from it. Then, I tried pulling the value using some simple jQuery calls, but got nothing...

Please help....

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about plugin