Apr 18, 2008

Easy HTML/CSS Color Picker

I was browsing the web for a really simple solution for RGB color selection in a form. But, every example I found seemed to require a ridiculous amount JS. Then I had a genius thought - why not just use CSS and HTML?

So here she is: (as I blog, you'll come to learn that all HTML elements are inherently female)

And here's the code:


funkjedi said...

Nice idea. There's no colour codes in the form though. There won't be any data submitted with the form!

Josh Bloomfield said...

STINK - there were <option value=""> at one point... that was the beauty. I guess Blogger WYSIWYG destroyed it.