jquery:颜色拾取器 Tiny Colorpicker


What is it?

Tiny Colorpicker is a crossbrowser jquery plugin that creates a color picker (form) input. Its a easy way to add color pickers to your forms or user interface.


  • IOS and Android support.
  • AMD, Node, requirejs and commonjs support.
  • Easy customizable
  • Can be used inside forms or outside
  • Lightweight
  • Source is on GitHub


    // Initialize a colorpicker like this.

    // Try this to get access to the actual colorpicker instance.
    var box = $('#box').data("plugin_tinycolorpicker");

    // Now you have access to all the methods and properties.
    // box.setColor("#cccccc");
    // console.log(box.colorRGB);
    // etc..

    // You can bind to the change event like this.
    $box.bind("change", function()
        console.log("do something whhen a new color is set");




原文:jquery:颜色拾取器 Tiny Colorpicker


Add a Comment

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

Time limit is exhausted. Please reload CAPTCHA.