Ok this might well be a long shot but here we go:<div><br></div><div>I've got a bunch of javascript that I copied from here: <a href="http://www.lutsr.nl/yui/accordion/">http://www.lutsr.nl/yui/accordion/</a></div><div>
<br></div><div>It's to create an accordion menu type effect. I've got it all hooked up and working in a page. But it only works once per page. The example shows two menus on the page. Any additional menus I set are always open and refuse to close. </div>
<div><br></div><div>I've stripped out the code at the start and the end of the menus and put them into functions in order to try and keep the code a bit tidy.</div><div><br></div><div>I've got to use YUI as it's being built into Moodle and that's it's official javascript library. </div>
<div><br></div><div>Anyone got any ideas?</div>