Why wonā€™t my menu toggle? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why wonā€™t my menu toggle?

https://code.sololearn.com/We1PBdTJNehC/?ref=app Press the grid button and it creates a table with button that I want to be a drop down menu. Iā€™m not sure why, but the button wonā€™t work when clicked and the css wonā€™t change like it should. Iā€™m using the toggle to switch between different css codes to show it when clicked, but it isnā€™t working. Itā€™s happening on line 60. If anyone has a solution or some tips to offer thatā€™d be appreciated.

5th Dec 2018, 6:09 PM
Thomas Czernek
Thomas Czernek - avatar
3 Respostas
+ 4
Hmm... Why not just use simple onclick() functions instead of CSS toggle? Unless of course you're trying to get some animation... Also a suggestion is yet setting your width to 100% as it doesn't display quite right on mobile devices. You've got a good start though, keep it up.
5th Dec 2018, 7:07 PM
Tony
Tony - avatar
+ 5
You have 2 console errors. One in line 46 where you have tried to set CSS for your table. Maybe work there and you can fix Ur code.
5th Dec 2018, 6:42 PM
Arushi Singhania
Arushi Singhania - avatar
0
idk man
5th Dec 2018, 6:20 PM
jade
jade - avatar