I need to completely hide a JQuery Accordion

48 views Asked by At

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

There are 2 answers

0
jpolo On BEST ANSWER

This is what ultimately did it (needed parentheses after accordion):

$("#accordionName-" + tabId).accordion().hide();
1
iuri On

Since an accordion is a common JQuery element, you can use .hide() function to completely hide a JQuery accordion.