Using jQuery
1. Download jQuery (The jQuery library is a single JavaScript file)
2. Reference it with the HTML <script> tag (notice that the <script> tag should be inside the <head> section)
<head>
<script src="jquery-1.10.2.min.js"></script>
</head>
Note : Place the downloaded file in the same directory as the pages where you wish to use it.
Alternate of downloading
If you don't want to download jQuery, include it from a CDN (Content Delivery Network)
Google CDN
</script>
- OR -
Microsoft CDN
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.min.js">
</script>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.