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

Reset / Clear method #580

Open
Barahten opened this issue Dec 29, 2021 · 1 comment
Open

Reset / Clear method #580

Barahten opened this issue Dec 29, 2021 · 1 comment

Comments

@Barahten
Copy link

Is there a method in the plugin that allows you to clear the field (analogous to clicking on the Reset button)

@thomedpete
Copy link

From what I can tell so far there is not an outright 'clear' method you can use the 'set' method and pass an empty string, or the string 'clear'
$("#color-picker").spectrum("set", "");
$("#color-picker").spectrum("set", "clear");

hope this helps

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