DOM - How to hide unformatted table during page load
DOM - How to hide unformatted table during page load
jteutenberg
Posts: 16Questions: 3Answers: 0
I have to use the DOM data source, because our td content is complex.
During the load of the page the normal content of the table is shown until it is rendered with DataTables.
Is there a way to hide the table until it is rendered with DataTables?
The reason is, that we don't want to show the unformatted table to our customer.
Replies
Yep, you should be able to just use the jQuery
hide()
andshow()
methods - something like this: http://live.datatables.net/xiyemuru/2/editColin
Thanks Colin.
But "$('table').hide();" doesn't work in that way.
But if I use "style="display: none;"" directly on the table it is working.