How to Render datatable into a different html element?
How to Render datatable into a different html element?
celvin
Posts: 1Questions: 1Answers: 0
It's possible to render your datatable into an specific html element?
By example the "renderTo" option contained in highcharts:
http://api.highcharts.com/highcharts/chart.renderTo
http://www.java2s.com/Tutorials/highcharts/Example/Chart/Create_a_div_and_render_to_it.htm
This discussion has been closed.
Answers
You can use the
JQuery
to do aappendTo
, on the table before initialize the DataTable on it.If you have some reason to not do that you can use the code below.
The code above will generate the DT bug gonna fail in the console because it is missing some parameters. I've just create an example that need your real inputs to works.