title: jsColor.js Change background color of element
body: <p>I am trying to change the background color of an element using this simple color picker but I am getting no results and no console errors.</p>
  
  <pre><code>&lt;div class="col-md-3"&gt;
      &lt;div class="home-icon"&gt;
          &lt;div class="home-icon-text"&gt;
              &lt;h3&gt;Home&lt;/h3&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="icon-color text-center"&gt;
          &lt;input class="color {onImmediateChange:'updateInfo(this);'}"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  function updateInfo(color) {
      var a = color.rgb[0];
      var b = color.rgb[1];
      var c = color.rgb[2];
  
      $(this).parent().prev().css("background", "rgb(" + a + "," + b + "," + c + ")");
  };
  </code></pre>