javascript - Spectrum color picker: the original input field is showing -


i'm using following code:

<script src="/js/spectrum.js" type="text/javascript"></script> <link rel="stylesheet" href="/css/spectrum.css" /> <script type="text/javascript">    jquery(function() {     var opts = {         showinput: true,         classname: "full-spectrum",         showinitial: true,         showpalette: true,         showselectionpalette: true,         maxselectionsize: 20,         preferredformat: "hex"     };     jquery( '#drivercolor' ).spectrum( opts );   } );  </script> ... <input type="text" name="drivercolor" value="#ff0000" id="drivercolor" /> 

when hit color picker, original input field appearing:

enter image description here

how can fix it? tia

this may little late but, in older rails app (2.3.4), able force original input field not show adding width, height, border , padding style of input eg:

<input id="your_id" name="your_field_name" type="text" style="width:0;height:0;padding:0;border:0;"> 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -