title: Sotring background image URL in a cookie using jQuery
body: <p>I am using jQuery to extract the URL of a background image and then store this in a cookie (to be used elsewhere on the site):</p>
  
  <pre><code>var pageImage = jQuery('#image &gt; div').css("background-image");
  </code></pre>
  
  <p>This value is not being passed to the cookie, and using console.log(pageImage) I can see that the value being stored is:</p>
  
  <pre><code>url("https://www.example.com/images/image1.jpg")
  </code></pre>
  
  <p>I need to store just the URL string in the cookie i.e:</p>
  
  <pre><code>https://www.example.com/images/image1.jpg
  </code></pre>
  
  <p>Any help as to how to remove <code>url("</code> and <code>")</code> using jQuery (in the cleanest way possible)?</p>