Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript working in jsfiddle but not in the browser. Reply To: working in jsfiddle but not in the browser.

#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?