title: jQuery: Using normal function value as jquery value
body: <p>Essentially i'm trying to get the value 'col' that is set in the html, and use it as the value for backgroundColor.</p>
  
  <p>Here's the script:</p>
  
  <pre><code>function bgc(col) {
          $("#BG") .animate({ backgroundColor: "col" }, 1000)
  }
  </code></pre>
  
  <p>Here's the html:</p>
  
  <pre><code>&lt;div id="BG"&gt;
      &lt;a href="#" onclick="bgc(#ffffff);"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help would be great, i've been fiddling for a while but i can't quite grasp it.
  Thanks</p>