title: Calculating a number using a textbox
body: <p>I've been trying to calculate a number using a number given by a user in a text box. I've been trying to use the following code. But when I try to test it, nothing happens. Is there something I'm missing? And is there a way that I can make the imprint variable global? </p>
  
  <pre><code>     &lt;form&gt;
          &lt;p&gt;How many products do you want
              ingraved?&lt;input id="imprint_amount" name="imprint_amount" type="text"/&gt;
          &lt;/p&gt;
          &lt;p&gt;Names to be Imprinted(one per
              line)&lt;TEXTAREA COLS=25 NAME="imprint_text" ROWS=5 WRAP=HARD style="resize:none;"&gt;&lt;/textarea&gt;
          &lt;/p&gt;
           &lt;input onclick="imprint_price" type="button" value="Finish"/&gt;
          &lt;p id="total_cost"&gt;&lt;/p&gt;
      &lt;/form&gt;
      &lt;script type="text/javascript"&gt;
  
          function imprint_price() {
              var imprint_cost,
                  imprint_quality,
                  imprint_total;
              imprint_cost = 10.99;
              imprint_quantity = document.getElementById('imprint_amount');
              imprint_total = $imprint_cost * parseInt(imprint_quantity, 10);
              document.getElementById('total_cost') = "$" + imprint_total;
  
          }
  </code></pre>
  
  <p>Thanks, 
  Traci</p>