Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to fetch pick a color value #75

Open
sunnyjndl opened this issue Jun 21, 2015 · 1 comment
Open

Not able to fetch pick a color value #75

sunnyjndl opened this issue Jun 21, 2015 · 1 comment

Comments

@sunnyjndl
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants