title: sum all input elements in jquery
body: <p>Trying to figure out how to write a jquery formula that will sum all input fields that begin with "pull" on keyup...  I'm trying the code below, but nothing happens... No errors, and no updates either.... (the html is at the very bottom)</p>
  
  <pre><code>$(document).ready(function(){
      /* sums pull total input fields */
      $("input[name^='pull']").bind("keyup", "calcPullTotal");
      calcPullTotal();
  });
  
  
  function calcPullTotal() {
      $("[id=totalpull]").calc(
          "pullnum + 0", { pullnum: $("input[name^=pull]") },
          function (s){
              return s.toFixed(0);
          },
          function ($this) {
              var sum = $this.sum();
                  $("#totalpull").text(
                  sum.toFixed(0)
              );
          }
      );  
  }
  &lt;table id="convert"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;&lt;td&gt;&lt;input type="text" value="" name="pull0" /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;input type="text" value="" name="pull1" /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;input type="text" value="" name="pull2" /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;input type="text" value="" name="pull3" /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/tbody&gt;
  
  &lt;tfoot&gt;&lt;tr&gt;&lt;td&gt;&lt;input type="text" id="totalpull" name="totalpull" value="" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tfoot&gt;
  &lt;/table&gt;
  </code></pre>