Addition of textarea (int) values
<p>I'm facing a little problem with my jQuery / Javascript code.</p>

<p>I have several values on a page, like :</p>

<pre><code>checkbox EXAMPLE EXAMPLE 150
checkbox EXAMPLE EXAMPLE 300
checkbox EXAMPLE EXAMPLE 300
</code></pre>

<p>I have this little code, which basically just add the numerical values (150, 300, 300) to an array, and then, sum the array in the "total" variable. (Well, at least this is what I'm trying to do...)</p>

<p>Here's the code :</p>

<pre><code> $('.pack_check').click(function() {
        var cout = [];
        total = 0;
        $('#services_pack input:checked').each(function() {
            cout.push(this.cout);
            $.each(cout,function() {
                total += parseInt(this);
                });
            });
        });
    });
</code></pre>

<p>My problem is, that when I click on my first checkbox, it's ok, total = 150
But, if I click on the second checkbox, total = (150 + 150 + 300) which is a bit annoying...</p>

<p>Anyone ?</p>

<p>Thanks in advance !</p>
