I am unclear on how to make my code close this menu. I have a button, and it needs to remove a class on another object. I also have another button which needs to add that class. I get an error of Object unable to change parameter of a child or smtn like that.
How would i do that?
Code is here:
https://pastebin.com/pQ6GLgN5
I need the div wrapping the x in line 20 to be the button, and it needs to change the classes of the div in line 43, and I have no idea how to do that.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.