Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to jQuery Hello, jQuery! The jQuery Object

Jay See
Jay See
6,880 Points

console error $ is not defined when trying to follow jQuery course. Checked and script is present in HTML file

Tried multiple browsers and no joy

2 Answers

Dan Weru
Dan Weru
47,649 Points

Hey, you have to make sure that jquery script comes before your custom javascript file. Two, if you're linking from a copy of jquery you have downloaded to your computer, make sure that the path is correct.

<script src = 'jquery.js'></script>
<script src = 'index.js'></script>

If this doesn't help, seeing your code would be the next stop.

Jay See
Jay See
6,880 Points

Thanks! That was it

Dan Weru
Dan Weru
47,649 Points

You're welcome. Happy coding!