Simple as this - I have a Form API fieldset with dynamically changing content. When it's empty, I don't want to show it at all. I use #prefix
and #suffix
to generate div my AJAX works with.
When I use:
$fieldset['#access'] = FALSE;
it disappears with it's div and no future AJAX call can make it reappear. So, how to hide it with empty, but leave wrapper intact?