jquery sum checked + select all
<p>the sum part works if you click each box individually but not when you click select all (although select all does check all the boxes)</p>

<p>any thoughts?</p>

<pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt; 
&lt;head&gt; 
&lt;title&gt;jQuery Example&lt;/title&gt; 

&lt;script src="../js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script language="JavaScript" type="text/javascript"&gt; 
$(document).ready( function() {
    $(".chkOptions").click(
     function () {
      var ntot = 0;
      $(".chkOptions:checked").each(function () {
       ntot += parseInt($(this).val());
      });
      $("#PaymentTotal").val(ntot);
     })
     .change();
});
&lt;/script&gt; 

&lt;SCRIPT LANGUAGE="JavaScript"&gt;
     $(document).ready(function()
     {
      $("#paradigm_all").click(function()    
      {
       var checked_status = this.checked;
       $("input[name=paradigm]").each(function()
       {
        this.checked = checked_status;
       });
      });     
     });
&lt;/script&gt;
&lt;/head&gt; 
&lt;body&gt; 
       &lt;h2&gt;How much do you want to save?&lt;/h2&gt; 


       &lt;form id="myTable" name="test" method="post" action=""&gt; 
        Check this for 10% savings
        &lt;input name="paradigm" class="chkOptions" type="checkbox" value="10" checked /&gt; 
        &lt;br /&gt; 
        Check this for 15% savings
        &lt;input name="paradigm" class="chkOptions" type="checkbox" value="15" /&gt; 
        &lt;br /&gt; 
        Check this for 20% savings
        &lt;input name="paradigm" class="chkOptions" type="checkbox" value="20" /&gt; 
        &lt;br /&gt; 
        Check this for 25% savings
        &lt;input name="paradigm" class="chkOptions" type="checkbox" value="25" /&gt; 
        &lt;br /&gt; 
        Check this for 30% savings
        &lt;input name="paradigm" class="chkOptions" type="checkbox" value="30" /&gt; 
        &lt;br /&gt;    
        &lt;input type="checkbox" id="paradigm_all"&gt;Select All&lt;br&gt; 
       &lt;/form&gt; 

&lt;!-- checkall(name of form, common name of checkbox group, true or false)--&gt;
       &lt;p&gt;Total Savings:
        &lt;input type="text" id="PaymentTotal" value="0" size="5" /&gt; 

&lt;/body&gt; 
&lt;/html&gt;
</code></pre>
