kdschool
asked on
How to make a local copy of a jquery libarary.
The code is pointing to this libarary.
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></s cript>
how canmake this local so I can use it without worry of the site not being available.
I need this exact version for the jquery menu I am using.
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></s
how canmake this local so I can use it without worry of the site not being available.
I need this exact version for the jquery menu I am using.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So if I put in a folder called _js then I would change this line of code from this to this?
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></s cript>
<script src="_js/jquery-latest.min .js" type="text/javascript"></s cript>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></s
<script src="_js/jquery-latest.min
>> This still point to an external file
I mentioned that in case you are not aware of Google's CDN. The way they have their CDN setup, the jquery above will always use version 1.11.1. However, if you prefer to have your own copy, just follow the steps I mentioned earlier.
I mentioned that in case you are not aware of Google's CDN. The way they have their CDN setup, the jquery above will always use version 1.11.1. However, if you prefer to have your own copy, just follow the steps I mentioned earlier.
Download jquery-latest.min.js and then upload it to your server then point to it like this:
<script src="jquery-latest.min.js" type="text/javascript"></script>
ASKER
That worked I just had to put it at the root of the directory not in the sub directory.
ASKER