Skip to content

How do you get the value? #22

Open

Description

@unluckychild

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

Tried to use it on input types, but doesnt work

Activity

  1. tharaka4146 commented on Oct 12, 2022

    @tharaka4146

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions