title: JQuery Ajax Post input Class
body: <p>Im trying to send Ajax post to PHP.</p>
  
  <p>This code works Ok:</p>
  
  <pre><code>$(document).on('keyup change',function(){
          $.post("suma.php",{name: "oscar"},
              function(data){
                  $('#Resultado').html(data);
              }
  
              );
  
      });
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  if( $_REQUEST["name"] )
  {
     $name = $_REQUEST['name'];
     echo "Welcome ". $name;
  }
  ?&gt;
  </code></pre>
  
  <p>But the problem is, How can I send the value of two input class like this and calculate the sum in PHP?</p>
  
  <pre><code> &lt;tr&gt;
      &lt;td&gt;&lt;input value="0" class="sum1"/&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input value="0" class="sum2"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Thank You in advance.</p>