I’m trying to download JQuery. When I click the minified version, I just get a bunch of code displayed in the browser. I don’t actually download anything. What am I supposed to do? How do I download JQuery and do I need to put it where my other files are?
Share
There are many ways you can get this to work
(it is supposed to show you the code like that)
You can copy all the code and save it as and jquery.js file and the call it like this:
Or you could just call it like this:
You can also link to it from many different places:
http://code.jquery.com/jquery-1.4.2.js Source version
Google Ajax API CDN
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
Microsoft CDN
http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js
Read more here:
http://docs.jquery.com/Downloading_jQuery
EDIT:
If you want to download the code you can actually do it! right-click the checkbox for example: PRODUCTION (24KB, Minified and Gzipped) and choose save as (maybe you´ll need to add the .js extension) “Thanks to: Jason McCreary & deceze”
EDIT:
To clarify your comment, you should include the jQuery like this:
and now work as usual:
or