title: jQuery make variable out of element before appending to DOM
body: <p>Trying to get efficient here. How can I store an element as a variable before appending it to the DOM? Seems like it's a waste to create it, append it, then go find it again to make a variable.</p>
  
  <p>My method is below. OBV it's saving the string as a variable, not the object, but you get the idea.</p>
  
  <p>Any magic for me or do I have to make two trips?</p>
  
  <pre><code>var $rGallery = '&lt;section id="rGallery" /&gt;';
  
  $bin.before($rGallery);
  
  console.log($rGallery);
  </code></pre>