Search code examples
javascriptjquerycssspectrumjs

Make 3 input fields instead of 1


I implemented Spectrum Color Picker. There are a couple slight changes I want to make.

  • I want to have rgb colors in 3 different input fields.
  • I want to have hex color in another input field.
  • I want to have name color (ex. red, brown etc.) in another input field.

I want to edit the source file.

JavaScirpt Source

CSS Source


Solution

  • You should be able to customize the library.

    Check out the options. Something similar can be found in the below links.

    input[type=color]

    Color