title: How to create a javascript variable from a DOM element using jQuery
body: <p>Let say I have the following DOM element on my page:</p>
  
  <pre><code>&lt;div id="name"&gt;Sharon&lt;/div&gt;
  </code></pre>
  
  <p><strong>Q1:</strong>
  Using jQuery, how do I turn the content of #name into a JS variable so I can reuse it in other 
  places on the DOM?</p>
  
  <p><strong>Q2:</strong>
  What's the best way to render a JS variable into my HTML using jQuery? Taking it a step further, if I wanted to remove the content of an element then replace it with the variable what's the best way of doing that?</p>