I have a dynamic table based on a python dataframe and I added to the 2nd and 23rd column the following classes:
$(".tablafiltros tbody tr td:nth-child(2)").addClass('ColNodo');
$(".tablafiltros tbody tr td:nth-child(23)").addClass('ColGest');
I have also assigned to .ColGest the following attr:
$(".ColGest").attr("data-pk","index")
By this way I am adding the same fixed attribute "data-pk" = "index" to every in ".ColGest", but what I need is to assign to each ".ColGest" an attribute that is the content of the .ColNodo (the cell value)
Thanks in advance.