Setting Title of the Table Dynamically.
Setting Title of the Table Dynamically.
ROK
Posts: 1Questions: 1Answers: 0
I want to set the Title of the Table Dynamically. So am trying to use document.getElementById('id').value, but ain't working kindly any pointers ?
This discussion has been closed.
Answers
The Editor form has a title which can be set dynamically. https://editor.datatables.net/reference/api/title()
I don't think a data table has a title. You may have used something you call title in your HTML and of course you can change this dynamically using Javascript or jQuery but that is not a data tables issue, is it?
Here are some links to change html or text dynamically using jQuery:
https://www.w3schools.com/jquery/html_html.asp
Something comprehensive on .text , .html and .val
https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_dom_html_set