Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Validate Javascript Form Input as CSS?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23067
    daveslab
    Member

    Hi all,

    I’m trying to design a cool Greasemonkey script and to have the user do some custom styling via an HTML input.

    However, I want to validate their input as a valid CSS color attribute. Is there a way to do this without writing a function to parse it exactly? Or perhaps a clever regular expression (not my forte)?

    Thanks to anyone who can help!
    Dave

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.