title: Copy an atrribute value from one attribute to an inner string within the other
body: <p>I have an <code>&lt;A&gt;</code> tag, in which I need to copy the value of the <code>HREF</code> attribute to an inner string within the <code>REL</code> attribute. To be specific:</p>
  
  <pre><code>&lt;a href="XX-some-link-XX" class="cloud-zoom-gallery small" 
  rel="useZoom: 'zoom1', smallimage: 'XX-this-is-where-i-want-to-copy-that-link-XX'"&gt;
  &lt;img /&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>I've been able to partly achieve this by doing the following:</p>
  
  <pre><code>jQuery(document).ready(function() {
  jQuery(".small").each(function() {
      var src = jQuery(this).attr('href');
      var a = jQuery(this).attr('rel', src);
  });
  });
  </code></pre>
  
  <p>But that removes the other data within the <code>REL</code> attribute (e.g <code>useZoom</code>).</p>
  
  <p>So my question is - how to copy an attr value and paste it within a specific sting in the value of another attribute?</p>