How To Put HTML Color Swatches In A Form?

Does anyone know how to do this?? I'm making a form in html and I want the person using it to be able to see a color swatch of html colors and select one to be used in the form.

Public Comments

  1. Yeah thats easy just put them(the colors) in a table. you do this by choosing that as the Cell BGColor, and to put a spin on it make the colors a link.
  2. This is cool - go here, Click View Source, Save As HTML file which you could link from the form, or copy/paste into your page next to your form so the user can select the colour, and enter the hex code or colour name into the form manually (just another idea!): http://home.cogeco.ca/~ve3ll/jscolors.htm Or maybe using Javascript - Here's some code: (looks rather complicated to me, lol): http://www.mattkruse.com/javascript/colorpicker/source.html
Powered by Yahoo! Answers