Answers for "how to add serial number in html table"

0

html table serial number

var addSerialNumber = function () {
    $('table tr').each(function(index) {
        $(this).find('td:nth-child(1)').html(index+1);
    });
};

addSerialNumber();
Posted by: Guest on January-26-2021

Code answers related to "how to add serial number in html table"

Browse Popular Code Answers by Language