Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Open up the developer tools (<kbd>F12</kbd>) you'll likely see an error message in the console, or a failed request in the Network tab. You can also use the debugger to diagnose exactly where the script is failing. But in your JSFiddle link you shared, it seems to be working fine, so I'm not sure what the issue is. Commented Sep 10, 2022 at 21:49
  • You need to load the scripts before you can use them. Either surround your code in $( document ).ready(function() {...}); or load the dependencies before executing your code. Commented Sep 10, 2022 at 21:51