title: jQuery - How to add the attribute rel to multiple links?
body: <p>Here's my code so far:</p>
  
  <pre><code>$('#floorplans img').each(function() {
      $('#floorplans a').each(function() {
          $(this).attr('rel','lightbox'); 
      });
  });
  </code></pre>
  
  <p>It works well so far, but I need it to do same thing for <code>#gallery</code> too. Is it possible to accomplish this without having to write the same code again for <code>#gallery</code>?</p>
  
  <p>Thank you!</p>