I have tried to find out the summation of multiple rows of jquery forms. But could not.
Input :
<input type="text" name="item_quantity[]" class="form-control item_quantity" " />
Jquery
$('input').keyup(function()
{
var num = Number($('#item_quantity').val());
var sum = 0;
for(i=0; i<num.size(); i++)
{
sum += num;
document.getElementById('total').value = sum;
}
});
Output :
Total: <span id="total"></span>