title: window.location.href - Left hand side of operator '=' must be a reference.
body: <p>I'm getting this error:</p>
  
  <pre><code>Left hand side of operator '=' must be a reference. 
  </code></pre>
  
  <p>when this script is run from a select menu change:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $('#productType').change(function() {
      window.location.href = window.location.href + '&amp;productType=' = $(this).val();
    });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>It's highlighting this line:</p>
  
  <pre><code>window.location.href = window.location.href + '&amp;productType=' = $(this).val();
  </code></pre>
  
  <p>as being the problem. Anyone know what's wrong with that line? I'm simply trying to add some parameters to the current URL and then perform the GET request again in the current page.</p>