I have a dynamic table which has 2 dynamic rows .i.e students and their subjects and marks. The code is below :
Code for Serial Number
function numberRows() {
$('input[name^="SNo"]').each(function(i) {
$(this).val(i + 1);
});
}
numberRows();
Output that comes :
Output expected
The serial numbers are not generated dynamically. Where could I have possibly gone wrong? Would appreciate any help/ suggestions! :)

