jquery/jquery-mobile — pull request #2966 by gabrielschulhof (2011-11-08 13:40:29+00:00)
Title: Hue/Saturation/Value picker widget

This widget can be used to select a colour. It will set the data-color attribute of the element it enhances, and it will correctly synchronize with the value attribute of the element, if that element is an input (of type color).

It does not by default auto-enhance input elements of type color, because it takes up much more room than a text box, but its documentation tells users how to do it (mobileinit event, $.mobile.hsvpicker.prototype.options.initSelector += ", input[type='color']").

When enhancing a HTML colour-selecting text box, it appears below the text box, and does not hide the text box, so the user can continue to type in HTML colour values.