Add A class to tr when using add rows
Add A class to tr when using add rows
alang2205
Posts: 18Questions: 11Answers: 0
Im using this example: https://datatables.net/examples/api/add_row.html
how can i add a class to tr of the created element everytime i create the tr element, for example i want to add the class class="created" to each element when they are created
This question has an accepted answers - jump to answer
Answers
Take a look at the examples in the docs for
row.add()
androws.add()
to see how to apply a classname.Kevin
gracias Kevin me fue muy útil, Saludos desde la oficina uwu