Add A class to tr when using add rows

Add A class to tr when using add rows

alang2205alang2205 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

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794
    Answer ✓

    Take a look at the examples in the docs for row.add() and rows.add() to see how to apply a classname.

    Kevin

  • alang2205alang2205 Posts: 18Questions: 11Answers: 0

    gracias Kevin me fue muy útil, Saludos desde la oficina uwu

Sign In or Register to comment.