How to get the input value all and make an addition
<pre><code>    &lt;ul class="liste_couleur_qty"&gt;
         &lt;li style="margin-bottom: 20px;"&gt;
                &lt;dl&gt;
                        &lt;table width="200" border="0"&gt;
                      &lt;tbody&gt;&lt;tr&gt;
                        &lt;td width="50%"&gt;
                        &lt;span style="display: block; font-size: 13px; line-height: 16px; margin-bottom: 2px;margin-right: 0px;margin-left: 20px;"&gt;Noir&lt;/span&gt;
                    &lt;/td&gt;

                        &lt;td width="50%"&gt;&lt;div class="add-to-cart"&gt;

                          &lt;label for="qty-2195"&gt;qty :&lt;/label&gt;

                          &lt;input type="text" class="input-text qty calcul_qty_product" title="Qté" value="0" autocomplete="off" maxlength="5" data-product_color="127" id="qty-2195" name="qty-2195" onblur="addToCartPlus(2195, 127, this);"&gt;

                        &lt;/div&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/tbody&gt;&lt;/table&gt;
                    &lt;/dl&gt;
            &lt;/li&gt;

            &lt;li style="margin-bottom: 20px;"&gt;
                &lt;dl&gt;
                        &lt;table width="200" border="0"&gt;
                      &lt;tbody&gt;&lt;tr&gt;
                        &lt;td width="50%"&gt;
                        &lt;span style="display: block; font-size: 13px; line-height: 16px; margin-bottom: 2px;margin-right: 0px;margin-left: 20px;"&gt;Blanc&lt;/span&gt;
                    &lt;/td&gt;

                        &lt;td width="50%"&gt;&lt;div class="add-to-cart"&gt;

                          &lt;label for="qty-2196"&gt;qty :&lt;/label&gt;

                          &lt;input type="text" class="input-text qty calcul_qty_product" title="Qté" value="0" autocomplete="off" maxlength="5"  id="qty-2196" name="qty-2196" onblur="addToCartPlus();"&gt;

                        &lt;/div&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/tbody&gt;&lt;/table&gt;
                    &lt;/dl&gt;
            &lt;/li&gt;
&lt;li style="margin-bottom: 20px;"&gt;
                &lt;dl&gt;
                        &lt;table width="200" border="0"&gt;
                      &lt;tbody&gt;&lt;tr&gt;
                        &lt;td width="50%"&gt;
                        &lt;span style="display: block; font-size: 13px; line-height: 16px; margin-bottom: 2px;margin-right: 0px;margin-left: 20px;"&gt;Blanc&lt;/span&gt;
                    &lt;/td&gt;

                        &lt;td width="50%"&gt;&lt;div class="add-to-cart"&gt;

                          &lt;label for="qty-2196"&gt;qty :&lt;/label&gt;

                          &lt;input type="text" class="input-text qty calcul_qty_product" title="Qté" value="0" autocomplete="off" maxlength="5"  id="qty-2196" name="qty-2196" onblur="addToCartPlus();"&gt;

                        &lt;/div&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/tbody&gt;&lt;/table&gt;
                    &lt;/dl&gt;
            &lt;/li&gt;

                &lt;/ul&gt; 
</code></pre>

<p>how to get all the input value and then add them all then give it to a variable. 
if in jquery,i know how to do.</p>

<pre><code>var length = $('liste_couleur_qty li input').length;
var input = $('liste_couleur_qty li input').val;
for(var i=0;i&lt; length;i++){
  var result += input;
}
</code></pre>

<p>the result will get all the value all.but my code still can't work.what's wrong with my jquery code? if i not want to use jquery only use javascript. how do i do?</p>
