Is it possible to create the table in a javascript function
Is it possible to create the table in a javascript function

I am new to all this stuff so bare with me.
What I am looking to do is to create the data table inside a function that gets called when the inner.html is changed.
function loadHTML(){
// I need to dynamically create the table here
}
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You would need to call the function after you change the HTML, but the is no reason why you can't just call
$().DataTable()
inside that function.Allan
Thanks a mill.