title: How can I ADD form values using javascript?
body: <p>this is the code i came up with but all it does is this 1+1=11 i need it to do 1+1=2.</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function startCalc(){
    interval = setInterval("calc()",1);
  }
  function calc(){
    one = document.form1.quantity.value;
    two = document.form1.price.value;
    c = one + two 
    document.form1.total.value = (c);
  }
  function stopCalc(){
    clearInterval(interval);
  }
  &lt;/script&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form name="form1"&gt;
  Quantity: &lt;input name="quantity" id="quantity" size="10"&gt;Price: &lt;input name="price" id="price" size="10"&gt;&lt;br&gt;
  Total: &lt;input name="total" size="10" readonly=true&gt;&lt;br&gt;
  &lt;input onclick="startCalc();" onmouseout="stopCalc()" type="button" value="Submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>of course this is a really simple form, but you get the idea
  please help me tell what i'm doing wrong here</p>