jQuery Colpicker help

jQuery Colpicker help

I'm trying to use the jQuery Colpicker but am having trouble setting it to a color.

I have a button click event (which is firing upon clicking) as shown below, but it doesn't change the color of the Colpicker. I'm probably over looking something simple.

Thank you for any help.

  1. $("#buttonUpdate").click(function(){
  2. $("#idcolors").val("#990000");
  3. });
  4. <input id="idcolors" type="text" value="#ff0000">