title: calculate two input field values in javascript
body: <p>Hi i want to calculate two input field values and result will show in third input field so i want to  write code in ajax page</p>
  
  <pre><code>&lt;input id="a1" type="text" /&gt;
  &lt;input id="a2" type="text" onblur="Calculate();"  /&gt;
  &lt;input id="a3" type="text" name="total_amt" value="" /&gt;
  </code></pre>
  
  <p>here javascript function</p>
  
  <pre><code> &lt;script&gt;
  
  
  function Calculate()
  {
  var resources = document.getElementById('a1').value;
  var minutes = document.getElementById('a2').value; 
  document.getElementById('a3').value=parseInt(resources) *       parseInt(minutes);
   document.form1.submit();
     }
   &lt;/script&gt;
  </code></pre>
  
  <p>starting its working but nw its not working please help me </p>
  
  <p>Thanks in Advance</p>