Studying ‘jQuery’

  • 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)
      &lt;head&gt;
      &lt;script src=&quot;jquery-1.11.3.min.js&quot;&gt;&lt;/script?
      &lt;/head&gt;
      
    • If you don’t want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
      &lt;head&gt;
      &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js&quot;&gt;&lt;/script&gt;
      &lt;/head&gt;
      
    • It is good practice to wait for the document to be fully loaded and ready before working with it.

Leave a Reply

Your email address will not be published. Required fields are marked *