title: Setting background-image (linear gradient) using jquery variables
body: <p>I'm looking to set the background-image of a div using a linear gradient which uses a number variable.</p>
  
  <p>I'm not sure how to set the jQuery to split the SetAttribute and add in the variable.</p>
  
  <pre><code>anAmazingSlider.setAttribute("style", "background-image: linear-gradient(to right, #e6e6e6, #e6e6e6 50%, #E74C3C 50%)");
  </code></pre>
  
  <p>I have a limit variable and need to set the the background % to that limit.</p>