ColorPick.js icon indicating copy to clipboard operation
ColorPick.js copied to clipboard

How do you get the value?

Open unluckychild opened this issue 4 years ago • 1 comments

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

Tried to use it on input types, but doesnt work

unluckychild avatar Jan 24 '22 14:01 unluckychild

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

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

tharaka4146 avatar Oct 12 '22 16:10 tharaka4146