title: Changing Image source to that of Image on different a page
body: <p>I want to update an image source to the source of another image on a different page.</p>
  
  <p>I'm creating a squarespace shop for furniture. The furniture has multiple seasonal material options which are selected every 6 months . I want the company im working for to easily update the material collection for all there products with out having to change it for each product individually. So my idea was to first add placeholder images to each product and then have a single page that describes the material. If the image on the material page changes all the place holder images update too. </p>
  
  <p>I would expect this to work but instead i'm getting an error: </p>
  
  <blockquote>
    <p>stoff2:740 Uncaught SyntaxError: Invalid or unexpected token</p>
  </blockquote>
  
  <p>This error points to the <code>$('img[alt...</code> line.</p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
    var count;
    var newSrc;
    for (count = 1; count &lt; 5; count++) {
      var adress = "http://uk5-shop.com/stoff" + count;
      $.get(adress, function(data) {
        newSrc = document.getElementById("5cf7ba50095f4e0001e1519c").src;
      });
      $(‘img[alt = ”stoff” + count]’).src = newSrc;
    };
  });
  </code></pre>