Home › Forums › JavaScript › working in jsfiddle but not in the browser. › Reply To: working in jsfiddle but not in the browser.
October 28, 2014 at 9:41 am
#187197
__
Participant
Here is my local js code
okay…? That’s not what I asked you.
Did you find any ways in which your code differed from jsfiddle?
This is the important part. Obviously, something is different, as it works one way and not the other. The items I suggested in my first post are very likely culprits. That’s why I mentioned them: they’re the things you might check first:
Is jsfiddle loading any assets for you (e.g., jQuery)?
Is jsfiddle running your code on DOM ready, and did you make sure to do the same?