jpolo
jpolo

Reputation: 35

I need to completely hide a JQuery Accordion

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

Upvotes: -1

Views: 59

Answers (2)

jpolo
jpolo

Reputation: 35

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

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

Upvotes: 0

iuri
iuri

Reputation: 19

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

Upvotes: -1

Related Questions