example code for colorpicker in phonegap

后端 未结 3 1158
感动是毒
感动是毒 2021-01-23 16:02

I cant fix colorpicker.js in phonegap, it is not working! Some help, please?

thanks

$(\'#colorSelector\').ColorPicker({
                    color: \'#000         


        
3条回答
  •  广开言路
    2021-01-23 16:42

    Try Spectrum Colorpicker. This is very nice color picker plugin.

    Download the zip file and include the spectrum.js file and spectrum.css file to your page. Then you have to create a text box as follows

    
    

    Inside your script file

     $("#custom").spectrum({
        color: "#f00"
     });
    

    Hope it helped you

提交回复
热议问题