It's very strange and, as I do not have much experience yet, I don't understand the problem of my JavaScript not working. I made a ToTop button.
In CodePen it works fine. As I scroll down it fades in & out. CodePen: http://bit.ly/1ttnjRi
But in Chrome it does nothing. Also, I sent all files to a friend and he had the same problem.
Can someone help me? Thanks!
UPDATE:
Debug console gives this: Uncaught ReferenceError: $ is not defined
P.S. What is the purpose of down voting? Possibly I am not the only one newbie encountering this problem. I guess stackoverflow is for helping each other in the uneasy coding stuff, not bragging about knowing something more and because of that being arrogant. Have a nice day! :)
You need to include jQuery by adding this to your HTML:
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments