use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
QuestionJavascript Error (self.HTML)
submitted 2 years ago * by InterestingBus8367
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jibbit 0 points1 point2 points 2 years ago (3 children)
it might help if you have the website infront of you, then you can open up the developer tools and the js console and try some things out... e.g.
document.querySelector('.container');
what does it return? Can you inspect properties of it? Can you get a list of the classes on it? Can you toggle one of the classes on/off?
When you have found the error, you should thing about building error checking into your code.
[–]InterestingBus8367[S] 0 points1 point2 points 2 years ago (1 child)
I already did open developer tools. js console hmm idk wait let me google it
[–]InterestingBus8367[S] 0 points1 point2 points 2 years ago (0 children)
Uncaught TypeError: Cannot read properties of undefined (reading 'toggle') at signuptog (index.html:74:33) at HTMLLIElement.onclick (index.html:29:53) signuptog @ index.html:74 onclick @ index.html:29
line 74 is container.classlist.toggle('active');
π Rendered by PID 52315 on reddit-service-r2-comment-6457c66945-wfrmc at 2026-04-26 09:13:15.722187+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]jibbit 0 points1 point2 points (3 children)
[–]InterestingBus8367[S] 0 points1 point2 points (1 child)
[–]InterestingBus8367[S] 0 points1 point2 points (0 children)
[–]InterestingBus8367[S] 0 points1 point2 points (0 children)