Can't Use External Jquery

Can't Use External Jquery

For some reason, If I go online and get a JQuery code and stuff, the external script will work. But whenever I put in my own code, even just a simple .hide, it won't work no matter what. Why is this?

$('#next').click(function () {
      $('#next').hide();
 });

That is literally the only code I use and it wont work, what am I doing wrong?