title: jquery sum of multiple input fields if same class in one input
body: <p>Hello I need to sum the values of same class input in one input with class name total.</p>
  
  <pre><code>&lt;input type="text" class="qty1" value="" /&gt;
  &lt;input type="text" class="qty1" value="" /&gt;
  &lt;input type="text" class="qty1" value="" /&gt;
  &lt;input type="text" class="qty1" value="" /&gt;
  &lt;input type="text" class="qty1" value="" /&gt;
  &lt;input type="text" class="qty1" value="" /&gt;
  
  &lt;input type="text" class="total" value="" /&gt;
  </code></pre>
  
  <p>Possible? </p>
  
  <p><a href="http://jsfiddle.net/5gsBV/">A working fiddle here</a></p>
  
  <pre><code>$(document).on("change", "qty1", function() {
      var sum = 0;
      $("input[class *= 'qty1']").each(function(){
          sum += +$(this).val();
      });
      $(".total").val(sum);
  });
  </code></pre>