Jquery sum on input boxes
<p>I am using following html form code...</p>

<pre><code>&lt;li&gt;&lt;input type="text" class="paytax" name="payment[tax][]" /&gt; &lt;input type="text" class="payship" name="payment[shiping][]" /&gt; &lt;input type="text" class="paytotal" name="payment[total][]" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="text" class="paytax" name="payment[tax][]" /&gt; &lt;input type="text" class="payship" name="payment[shiping][]" /&gt; &lt;input type="text" class="paytotal" name="payment[total][]" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="text" class="paytax" name="payment[tax][]" /&gt; &lt;input type="text" class="payship" name="payment[shiping][]" /&gt; &lt;input type="text" class="paytotal" name="payment[total][]" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;input type="text" class="paytax" name="payment[tax][]" /&gt; &lt;input type="text" class="payship" name="payment[shiping][]" /&gt; &lt;input type="text" class="paytotal" name="payment[total][]" /&gt;&lt;/li&gt;
</code></pre>

<p>I am trying to get total of .paytax and .paytax ($('.paytax').val()+$('.payship').val();) but its adding total of first li input to each .paytotal, please help me with proper code.</p>

<p>thanks for support.</p>
