Menu to select color

6

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

    
asked by anonymous 24.06.2015 / 16:44

2 answers

6

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

    
24.06.2015 / 16:50
3

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:

$("#custom").spectrum({
    color: "#f00"
});
    
24.06.2015 / 17:01