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

+4

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

+1

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

+3

Thank you Ollie Q

+3

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

+1

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

0

No problem