Not uncommon jquery features, compatible with all versions above jquery1.2.6
Instance Preview
Introducing Files
<link type= "Text/css" rel= "stylesheet" media= "All" href= "Socolorpacker/css/style.css"/> <script "type="
Text/javascript "src=" jquery1.8.0.min.js "></script> <script type=" Text/javascript "src="
Jquery.socolorpacker-1.0.min.js "></script>
<script type=" Text/javascript "src=" Jquery.bgiframe-2.1.1.js "></script>
How to use
<input type= "text" class= "TXT" id= "txt_pack_1" name= "txt"/>
$ (' #txt_pack_1 '). Socolorpacker ();
Socolorpacke parameters
$ (obj). Socolorpacker ({
changetarget:null,//color selection after the target object is filled in or changed, default null is the current reference method object
Textchange:true,// Whether to fill in the target object
colorchange:1,//value: 0,1,2, 0: Unchanged, 1: Change the color of the text, 2: Change the background color
selfbgchange:false,//change their background color
Size:2,//value: 1,2,3, change color picker performance size, 1: Small, 2:3: Large
x:0,////color picker coordinate x axis offset
y:20,//color picker coordinate y-axis offset
styleclass:null,// Custom add class name, can not be the default "Colorpackerbox"
callback:callback:function () {}//Click Color cells to return the event
});