Skip to content
Advertisement

Accordion Experiencing jQuery Issue

I am currently working on a HTML dropdown with Accordion & jQuery. For example in the snippet below, I have AU Controls with different levels. I want to organize parent rows with the level rank, and then the appropriate controls under each Level Parent row.

JavaScript
JavaScript
JavaScript

UPDATE: I have figured out the nesting issue and was able to fix that. Now the issues I am having, is what I presume to be with the jQuery. When I run my test case in JSFiddle, the parent row opens, and contains all of the correct child rows that I wanted in it. When I try to open the child rows, they open for a half a second, then immediately collapse.

Advertisement

Answer

Ok after testning and reading the documentation, I found the problem. You are bounding multiple nested divs with accordion

Now lets see your html and try to figure out the problem.

This is your original Html

JavaScript

Now if you look closely, you will see more then one div that containe .ui.accordion which trigger the problem.

the best solution is to give the div(ui stackable grid container) a new class or Id and try to bind it with this id instead.

Here is the result

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement