0
大家好,我找不到解决方案;jquery总结重复行数组中的所有值
<tr><td> Some Code here <input name="forwardings[nodes][amount][]" class="repeatingClass"> some more code here </td> </tr>
<tr><td> Some Code here <input name="forwardings[nodes][amount][]" class="repeatingClass"> some more code here </td> </tr>
<tr><td> Some Code here <input name="forwardings[nodes][amount][]" class="repeatingClass"> some more code here </td> </tr>
和我需要总结所有repeatingclass值,当我从这些其中之一集中我尝试了这样的事情,但无法处理这个;
$('.repeatingClass').focusout(function(){
var totalPoints = 0;
$('.repeatingClass').each(function(){
totalPoints += $('.repeatingClass').val();
});
alert(totalPoints);
});
我该怎么办? 关于
感谢花花公子运行良好之后将其添加到总。干杯 – zyrag 2014-11-04 02:25:47