title: Javascript - get text between <li> by ID
body: <p>I'm trying to write some javascript that will grab the inner text of li elements (1-16) and put them into hidden fields.  </p>
  
  <pre><code>   var myValue9 = document.getElementById("fileName9").value;
     oForm.elements["fileName9"].value = myValue9;
  
  
   &lt;input name="fileName9" type="hidden" id="fileName9" /&gt;
  
  &lt;li id="wavName9"&gt; Some Text &lt;/li&gt; 
  </code></pre>
  
  <p>How do I return the text in between the <code>&lt;li&gt;</code> and put into the hidden field?</p>