javascripthtmlcsscolor-pickerjscolor

How to not display the value


I am using jscolor to pick a color with an input.

I wanted to style it but I can't get rid of the hex value of the color choosen and I didn't find any documentation about options.

What I've tried :

//It shows nothing
display: none 
//It works but then the dot isn't properly aligned
font-size:0 
//does nothing    
class="jscolor "{valueElement:null, value:"#e6e5f4"}

jsfiddle


Solution

  • Change:

    class="jscolor "{valueElement:null, value:"#e6e5f4"}
    

    to:

    class="jscolor {valueElement:null, value:'#e6e5f4'}"