What am i doing wrong | Sololearn: Learn to code for FREE!


What am i doing wrong

Accordion https://code.sololearn.com/WqUtVpqa1GFp/?ref=app

1/27/2021 12:33:10 AM

Fernando Aldridge

5 Answers

New Answer


I made changes to fix the code... 1) removing script tags as they are not required in an external js script 2) moved & added brackets (see changes for yourself as you need curly brackets after the function() https://code.sololearn.com/W95F76D6yzaW/?ref=app


Thank you Ollie Q


Sorry to bother you Ollie Q .. I was wondering how do i get the button class to work with the div class panel.? in order to make the accordion effect


it’s fine Fernando Aldridge is this what you would like? https://code.sololearn.com/W95F76D6yzaW/?ref=app


No problem