title: How to change the value of JsColor and run jscolor's functions?
body: <p>I'm having difficulty with jscolor, or <a href="http://jscolor.com/" rel="nofollow">http://jscolor.com/</a>
  I would like to change the value of the color in javscript, not just be able to type it in or pick it with clicking. I've looked into its code and found where it updates, but I can't figure out a way to rerun the function whenever I change the value. </p>
  
  <pre><code>document.getElementById('idTryingToChange').value
  </code></pre>
  
  <p>This is essentially where I'm able to obtain the information of the color that is selected, but if I write a string to it for example it will only write the text not change the background-color function or basically update the js color, like it would if I typed in the color. I realized it must be on a keyup or keydown event and found a function that is in the js color script. Now I just need to find a way to run the function or is that not going to work? By the way the function is:</p>
  
  <pre><code>var updateField = function() {
              THIS.fromString(valueElement.value, leaveValue);
              dispatchImmediateChange();
          };
  </code></pre>
  
  <p>So if you're looking through the jscolor code it will be easier to find with this info or look up keyup in the script. Thanks for any help. If the question seems to vague or you need more details let me know. I know it seems kind of like a weird bug. Also I found something about binding to ids in the code on the js color website, but that didn't seem to work. </p>