title: How to append the class of a clicked link to the end of the href of another anchor tag?
body: <p>I'm working on a website that makes use of isotope filters and hash history.<br>
  However, in order for my filters to work I need <code>#filter=.print</code> to be added after the permalink of my thumbnails <code>"a.perma"</code>. the <code>".print"</code> is the class of the filter thats being clicked <code>"option-set a"</code>. In this case the print filter.<br>
  I am not too skilled at jQuery and any help would be appreciated.<br>
  Here's the code I've been messing with:</p>
  
  <pre><code>var myClass;
  
  jQuery("option-set a").click(function() {
      myClass = jQuery(this).attr("class");
  });
  
  jQuery("a.perma").each(function() {
      var _href = jQuery(this).attr("href"); 
      jQuery(this).attr("href", _href + myClass);
  });
  </code></pre>