Accordion is not working


Can somebody please help me with this exercise?

I did precisely as they asked on and everything looks as it is supposed to look, but it doesn't act like an accordion.

So I'm asking myself what I'm doing wrong here. Can somebody tell me?


Hi rubenvl i think your problem is here:
$( "#accordion" ).accordion();

you should include the function sentence first just look carefully at jQuery UI accordion widget page there you'll find out like:
$( function() {
$( "#accordion" ).accordion();
} );

Hope i helped!


Hi wloan,

Thank you for your response.

Unfortunately, I already tried that and tried it again just now, but it still doesn't seem to work.



let me see your code now!


Already solved it. I just had to add the jquey-ui library at the bottom of the html.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.