lauren / pick-a-color

an easy-to-use jQuery color picker for Twitter Bootstrap
http://lauren.github.com/pick-a-color/
MIT License
269 stars 89 forks source link

Not able to fetch pick a color value #75

Open sunnyjndl opened 9 years ago

sunnyjndl commented 9 years ago

Hello,

I am using pick a color for one of my form.I have used it as -

But when i am trying to fetch the value of color picker on click of submit button, then it is showing me blank or empty string.I am fetching the value as -

alert($("#colorPicker").val());

isi-dwade commented 4 years ago

You can add this to the top of the code module: $.fn.getColor = function () {
return $(this).find('input').val(); } then call by $("#colorPicker").getColor();