Can I create datatables without thead tag

Can I create datatables without thead tag

woomzonewoomzone Posts: 1Questions: 1Answers: 0

Can I create datatables without thead tag. so I want to declare only the table tag and create the columns using the columns option in datatables. Is this possible?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765
    Answer ✓

    Datatalbes does require a thead as described in the HTML docs. Instead of creating a thead in the DOM you can use columns.title to have Datatables create the thead.

    Kevin

Sign In or Register to comment.