title: Get value of span id for hidden type value
body: <p>I currently have a form that adds up the total value and puts the number inside a span id.</p>
  
  <pre><code>&lt;p&gt;Total: &lt;span id="system_cost"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I need that value to be put back into a hidden type value.</p>
  
  <pre><code>&lt;INPUT TYPE=”HIDDEN” NAME=”charge_total” VALUE=”system_cost”&gt;
  </code></pre>
  
  <p>Im not very good at javascript and am having trouble figuring this out so any help would be very appreciated. I need the id to populate inside the hidden type value.</p>
  
  <p>[edit] sorry I put the wrong code in. [/edit]</p>