title: Bootstrap colorpicker initial color value
body: <p>I am using bootstrap colorpicker but my requirement is to change the default onload color differently on change of select drop down list. </p>
  
  <p>I am using the below constructor :-</p>
  
  <pre><code>$('#colorPicker').colorpicker();
  </code></pre>
  
  <p>This is the code in jsp.</p>
  
  <pre><code>&lt;div id='colorPicker'&gt;
   &lt;input type='text' value='#ea0437' class='form-control'/&gt;
   &lt;span class='input-group-addon'&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am getting the color code from database so I can't add the initial color code as given above in the following line :</p>
  
  <pre><code>&lt;input type='text' value='#ea0437' class='form-control'/&gt;
  </code></pre>
  
  <p>How can I provide this color in constructor ?
  The documentation says that there is a color option, but no demonstration given. How can I provide the color initially ?  Something like this :</p>
  
  <pre><code>$('#colorPicker').colorpicker({
  color : '#ea0437'
  })
  </code></pre>
  
  <p>Any suggestion? Thanks in advance. </p>