Execute the same function for both tbody and tfoot
As for now this function only includes tbody:
- ).each(function (tbodyNumber, tbody) {
- $(this).attr("id", tbodyNumber)
- $(this).children().each(function (rowNumber, row) {
- $(this).attr("id", tbodyNumber + "-" + rowNumber);
- })
Is there a way to also target tfoot in the same function?
I need to execute the same function for tfoot as well. So the matched element should be either "tbody" or "tfoot".