Menu to select color

Posted on

Question :

I’m making a tool, and I need a menu for color selection.
Could someone tell me how to do?
Something similar to this:


Answer :

With HTML5 simply use% color_type color :

Escolha a cor: <input type="color">

Note: Not all browsers support this type of input.

Or use a plugin Javascript, such as link


This picker of the particular image is seems to me to be Spectrum . With it, just make the files

<script src='spectrum.js'></script>
<link rel='stylesheet' href='spectrum.css' />

and make the call as a jQuery plugin in your selector, something like:

    color: "#f00"


Leave a Reply

Your email address will not be published. Required fields are marked *