- Download jQuery from jQuery Download
- Download either the compressed, production jQuery or uncompressed, development jQuery.
- Place the jquery-1.11.0.min.js in the same folder as your .html file.
- Now, add the below code within your <head> tag in your HTML file.
<script type="text/javascript" src="jquery-1.11.0.min.js"> </script>
- Add the below lines just before the <body> tag closes.
<script type="text/javascript"> if(typeof jQuery == 'undefined') { alert('jQuery Unavailable') } else { alert('jQuery Ready'); } </script>
If jQuery was successfully loaded in the page, You should see the text jQuery Ready pop up on the page.
Note:
- Please change the jquery-1.11.0.min.js specified in the src with your own jQuery filename.
No comments :
Post a Comment