Home  >  Article  >  Web Front-end  >  Jquery color picker ColorPicker implementation code_javascript skills

Jquery color picker ColorPicker implementation code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:48:121204browse

CMS usually has the function of adding color to the title, but it is generally relatively simple and has little color support. Here I want to share a color selector that I modified. The interface is simple and powerful. It can be deployed quickly in our daily projects.

jQuery颜色选择器


Copy code The code is as follows:

$(" .colorpicker").colorpicker({
target:'#title',
success:function(o,color){
$("#color").val(color)
},
reset:function(o){
$("#color").val('');
}
});

Related files and demos
ColorPicker selector including demo program download: Click to download
ColorPicker demo: Click to view
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn