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 trialIan Salmon
Courses Plus Student 10,687 PointsInstalling jQuery now
I know that Treasure said she would go over this in a later video, but I really wanted this information now (as I'm sure of my colleagues reading this do too).
NODE - if you have npm you can install from the CLI
npm install jquery
Other methods listed here: http://jquery.com/download/
1 Answer
Michael Cook
Full Stack JavaScript Techdegree Graduate 28,975 PointsHey Ian, if you want to run jQuery locally, it's really as simple as adding it as an external file the same way you would with any other JavaScript file. First go to the jQuery website: https://jquery.com/ and download the jQuery file (I highly recommend the minified file). Then copy and paste this script tag into your code: <script text="text/javascript" src="jquery-3.3.1.min.js"></script>
and you'll be ready to write jQuery for your own projects on your local drive.
Note: Make sure you specify the correct file path to the script tag based on where you save a copy of the jQuery file on your machine. Happy coding!
Ian Salmon
Courses Plus Student 10,687 PointsIan Salmon
Courses Plus Student 10,687 PointsMichael Cook absolutely! That's a great way. This was just easier for me since I had node installed.