my javascript only works when it is in a function
12146
Why does jQuery or a DOM method such as getElementById not find the element?
57551
Why isn't my JavaScript working in JSFiddle?
84931
jQuery id selector works only for the first element
56806
on append() do something
56852
How to call a specific function in a PHP script via Ajax?
25505
Why does JavaScript only work after opening developer tools in IE once?
45486
if statement in loop not working
45880
Custom function won't refresh as inputs are changed
120300
HTML element does not fade in using jquery
62902
jquery attr('checked','checked') works only once
106529
How is it possible that the function of the test page works, but it does not go live?
149789
Using a function in two different ways
36999
How to pass a callback as a parameter into another function
134603
Why doesn't a Javascript return statement work when the return value is on a new line?
68351
Why can I use a function before it's defined in JavaScript?
152510
Why is document.GetElementById returning null
153980
Python: My function returns "None" after it does what I want it to