Answer the question
In order to leave comments, you need to log in
Need looping logic to loop through all the rows in a table?
Good afternoon! there is a code
var pos = $(this).closest('#rrr').find('th:last, td:last input').val();
Answer the question
In order to leave comments, you need to log in
var pos = 0;
$(this).closest('#rrr').find('th:last input, td:last input').each(function() {
pos += +$(this).val();
});
Please note that I corrected the bug in the selector
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question