- Summary
- jQuery is a lightweight, “write less, do more”, JavaScript library.
- The purpose of jQuery is to make it much easier to use JavaScript on your website.
- jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.
- Before you start studying jQuery, you should have a basic knowledge of: HTML, CSS, and JavaScript
- The jQuery library is a single JavaScript file.
- You reference the jQuery library with the HTML <script> tag (notice that the <script> tag should be inside the <head> section)
<head> <script src="jquery-1.11.3.min.js"></script? </head>
- If you don’t want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
<head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> </head>
- It is good practice to wait for the document to be fully loaded and ready before working with it.