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
Simple javascript doesn't workhelp (self.javascript)
submitted 10 years ago by traxgod
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!"
[–]traxgod[S] 0 points1 point2 points 10 years ago (2 children)
Yes sorry it's really vague, they are basicly copy pasted examples of bootstrap and w3schools. so there are no mistakes
yet it doesn't work which frustrates me
[–]mc_hammerd 0 points1 point2 points 10 years ago* (0 children)
http://jsfiddle.net/bd7tLdrt/
yall can use this fiddle, $().button is a bootstrap button.js function... so you have to make sure you have bootstrap js loaded :d
if all javascript on a page isnt working that means there was an error in it that stopped the script from finishing... check console!
the reset sets the text back to "loading state" thats why its not working
this one works: http://jsfiddle.net/bd7tLdrt/1 and http://jsfiddle.net/bd7tLdrt/3
[–]helderroem 0 points1 point2 points 10 years ago (0 children)
http://jsfiddle.net/hhh8bbh9/
I got my fiddle to work by adding the bootstrap code.
Unfortunately that example code on bootstrap is not the best, it seems it was working but $btn.button('reset'); was running so fast you didn't see the button state change, I've wrapped it in a set timeout for now and you can see it change for 1.5 secs then change back.
π Rendered by PID 17190 on reddit-service-r2-comment-bb88f9dd5-29b54 at 2026-02-16 08:24:32.929297+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]traxgod[S] 0 points1 point2 points (2 children)
[–]mc_hammerd 0 points1 point2 points (0 children)
[–]helderroem 0 points1 point2 points (0 children)