title: Multiply the two textbox values and display the result in third textbox in php,jquery
body: <p>I have the code to dynamically generate the textboxes. I want to multiply the values of quantity and rate textboxes and display the result in total textbox and post it to next page.</p>
  
  <p>The fiddle <a href="http://jsfiddle.net/hEByw/" rel="nofollow">http://jsfiddle.net/hEByw/</a> that shows how textboxes are dynamically generated.</p>
  
  <p>I have tried the following part of code to multiply the two textbox values but its not working for me. please see the fiddle for complete code.</p>
  
  <pre><code>    //To multiply two textbox values
        $('#qty + counter + ').keyup(calculate);
        $('#rates + counter + ').keyup(calculate);
        function calculate(e)
      {
         $('#total + counter + ').val($('#qty + counter +').val() * $('#rates +         counter+').val());
      }
  </code></pre>
  
  <p>Can any one suggest where am I going wrong or the correct way of doing it. I am new to jquery. Any help is appreciated.Thanks in advance.</p>