skip to Main Content

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


  1. Chosen as BEST ANSWER

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

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


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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search