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

How do you get the value? #22

Open
unluckychild opened this issue Jan 24, 2022 · 1 comment
Open

How do you get the value? #22

unluckychild opened this issue Jan 24, 2022 · 1 comment

Comments

@unluckychild
Copy link

Since it is in div class name, i cant get the value

Tried to use it on input types, but doesnt work

@tharaka4146
Copy link

get the css property using this code (here "picker" is the class name of the div)

const color = document.querySelector('.picker').style.color

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