How to Add Custom tag in Datatable

How to Add Custom tag in Datatable

GurupriyanGurupriyan Posts: 15Questions: 6Answers: 0
edited November 2019 in Free community support

I want to add Custom <th> tag after Datatable get created.

 var nCloneTh = document.createElement('th');
 $('#table_id thead tr').each(function () {
 this.insertBefore(nCloneTh, this.childNodes[0]);               
});

Not get Added.Kindly help me ASAP

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.