I'm trying to put an xml loop in a jQuery UI accordion, but it's only the first loop that gets displayed in the accordion, the rest of the loops goes outside for some reason.
How can I make it work with each loop?
This is the accordion script (I've taken out the xml url and foreach stuff for simplicity)
And this is what is supposed to be looped
I've used a different type of jQuery accordion, which looped perfectly, but I was unable to make it scroll like i wanted to, when the accordion opened up, hence the switch to jQuery UI.
The first accordion, which works, is set up the same way as my non-working accordion, which is baffling me a bit.
Working accordion, can be seen here http://kreuzwerk.dk/dev/hrmanxmlacc/
Non-working accordion is here: http://kreuzwerk.dk/dev/hr-manager-xml-acc-alt/