Ok this might well be a long shot but here we go:<div><br></div><div>I&#39;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&#39;s to create an accordion menu type effect. I&#39;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&#39;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&#39;ve got to use YUI as it&#39;s being built into Moodle and that&#39;s it&#39;s official javascript library. </div>
<div><br></div><div>Anyone got any ideas?</div>