Answers for "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

Browse Popular Code Answers by Language