Setting Title of the Table Dynamically.
Setting Title of the Table Dynamically.
![ROK](https://secure.gravatar.com/avatar/bc53a23e5323593964a66e5d405692b0/?default=https%3A%2F%2Fvanillicon.com%2Fbc53a23e5323593964a66e5d405692b0_200.png&rating=g&size=120)
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