title: Add variable to end of href URL onClick JQUERY
body: <p>I feel like this should work, but doesn't.  Not sure what I'm doing wrong.</p>
  
  <pre><code>function addURL()
  {   
  $(this).attr('href', function() {
  return this.href + '&amp;cylnders=12';
  }   
  
  
  &lt;a onclick="addURL();" href="/search-results/?var1=red&amp;var2=leather"&gt;Click this&lt;/a&gt;
  </code></pre>