I 'm not sure how to update the row total as each of these values change.I'm getting $ is not defined", obviously because I still haven't learned it and I could use some help.
function sum_row_qty(el) {
let rowTotal = 0
let parent = $(el).closest('tr')
parent.find('.size_qty').each(function() {
rowTotal += $('.size_qty').val();
})
console.log(rowTotal)
}
<tr>
<td><input class="size_qty" type="number" min="0" name="numberInputs" value="0" onchange='sum_row_qty(this)'></td>
<td><input class="size_qty" type="number" min="0" name="numberInputs" value="17" onchange='sum_row_qty(this)'></td>
<td class="total">0.00</td>
</tr>