Expand Table height when DIV is hidden

Expand Table height when DIV is hidden

dmeisterdmeister Posts: 10Questions: 2Answers: 0

In my html, I have a div that contains my custom filters and right below it is the table used by DataTables. I have a button right above the table but outside of the div. When I click the button I use the jQuery toggle function to hide the div with the filters. It works as expected, but I'd like my table to expand and fill the space the div was taking. When I click the button again, I'd like the table to resize since the div is now visible. Currently, when the table is hidden, the table shifts up (does not resize) to fill the void left by the div. Thanks.

Replies

This discussion has been closed.