Add div wrapper around the header

Add div wrapper around the header

rhaerhae Posts: 5Questions: 0Answers: 0
edited June 2012 in DataTables 1.8
How can I add a div around the th text programmatically like below? I can add it to the tables manually, but I was wondering if there was a way to add the wrapper around it so that I don't have to add it to every table.


Consumer Name
Address........

Replies

  • allanallan Posts: 63,597Questions: 1Answers: 10,485 Site admin
    There isn't a built in way to do that ( currently - the plan is for v1.11 to introduce options for that kind of thing!), so you would currently need to do it in the same way as you would with a non-DataTables table (i.e. just wrap it up with a jQuery call).

    Allan
This discussion has been closed.