Hide table if search is unsuccessful.
Hide table if search is unsuccessful.
I have a page with 3 tables and a search field that works for these 3 tables. I need to hide the tables that have no results and only show the ones they have. Can someone help me?
This discussion has been closed.
Replies
Hi @fernandodenardin ,
On the
draw, you could check the table length (either with jQuery or the API'spage.info()), and just hide the table wrapper element if it's empty.Cheers,
Colin