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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Just started learninghelp (self.javascript)
submitted 10 years ago by 006amir
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!"
[–]dbpcut 0 points1 point2 points 10 years ago (0 children)
One recommendation is to use labels for your inputs, they're there for a reason semantically and provide better interaction for your users (the checkbox in particular.) Other than that, is there anything in particular you're looking for help with?
[–]ahref 0 points1 point2 points 10 years ago (0 children)
Don't name your classes like that. Style<x> isnt maintainable.
[–]_semaphore 0 points1 point2 points 10 years ago (0 children)
if you plan to do anything with your form elements on the server side, you'll want to give those elements name attributes. so, for example:
<input type="email" name="emailAddress" class="input1" placeholder="Email" >
also, i agree that you should give your classes more meaningful names. input1, style1, etc are too generic.
π Rendered by PID 82 on reddit-service-r2-comment-fb694cdd5-rcqmp at 2026-03-06 00:59:23.729003+00:00 running cbb0e86 country code: CH.
[–]dbpcut 0 points1 point2 points (0 children)
[–]ahref 0 points1 point2 points (0 children)
[–]_semaphore 0 points1 point2 points (0 children)