How do you completely hide a JQuery accordion? Everything I can find when searching only explains how to collapse and expand the accordion. Not how to make it disappear completely.
I want to completely hide the accordion…not just collapse it.
When I do this… $("#accordionName-" + tabId).accordion.hide();
I get this error…
Client Message: Uncaught TypeError: $(…).accordion.hide is not a function
2
Answers
This is what ultimately did it (needed parentheses after accordion):
$("#accordionName-" + tabId).accordion().hide();
Since an accordion is a common JQuery element, you can use .hide() function to completely hide a JQuery accordion.