I have a problem multiplying the number then getting the sum after. . 
<pre><code>    &lt;script language="JavaScript" type="text/javascript"&gt; 
    $(document).ready( function() {


        $(".chkOptions").click(

            function () {
              var multiplier = $('#multiplier').val();

                var y = $('.chkOptions').val() * multiplier;
                $(".chkOptions:checked").each(function () {
                    y += parseInt($(this).val());
                });


                $("#txtSavingsTot").val(y);

            })
            .change();



    });
    &lt;/script&gt; 
</code></pre>

<p>This code doesn't lead me any where. . . What I wanted to happen is the hidden field multiplier be multiplied to the checkbox</p>

<pre><code>&lt;input type="checkbox" name="cb1" id="cb1" value="60" class="chkOptions" /&gt;&lt;input type="checkbox" name="cb2" id="cb2" value="40" class="chkOptions" /&gt;&lt;input type="checkbox" name="cb3" id="cb3" value="15" class="chkOptions" /&gt;&lt;input type="checkbox" name="cb4" id="cb4" value="20" class="chkOptions" /&gt;&lt;input type="hidden" name="multiplier" id="multiplier" value="4" /&gt;
</code></pre>

<p>What I wanted to happen is beside the checkbox(when checked) the multiplied value &amp; subtotal would be shown, can u help Stackoverflow pros with this problem? Thanks :)</p>

<p>XXXXXXO</p>
