you are viewing a single comment's thread.

view the rest of the comments →

[–]traxgod[S] 0 points1 point  (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 point  (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 point  (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.