I have the following code and whenever I load it with HTML, the console gives an error right after loading.
Uncaught ReferenceError: $ is not defined
My script is linked to the HTML file like so: <script src="src-animation.js"></script> in the <head>.
Here is my jQuery:
$(document).ready(function(){
$('.play').click(function() {
$(this).fadeOut('slow');
$(this).append("<h1>Now loading...</h1>");
});
$('.not-rdy').click(function(){
alert("This chapter isn't done yet.\nComing soon!");
$(this).fadeOut('fast');
});
$('#updateCHK').click(function() {
alert("Server is temporarily unavailable.\nTry again later.");
});
});
What am I doing wrong?
src-animation.jsor it is in noConflict mode.src-animation.js"?