+ 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 Answers
+ 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