Need to copy the text inside an <a> tag and move it inside a specific <div>
<p>I have this piece of code:  </p>

<pre><code>&lt;li class="selected"&gt;&lt;a href="/AmIACandidate.html"&gt;Am I a Candidate?&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>I need to grab the text "Am I a Candidate?" from inside the  tag and move it inside a specific div tag.</p>

<pre><code>&lt;div id="sideNavHeader"&gt; --Copy needs to go here-- &lt;/div&gt;
</code></pre>

<p>I can copy the whole <li> but can't seem to figure out how to grab just the text. I'm using it to dynamically create a title to a side nav on my site.</p>

<p>Thanks for any help</p>
