...

Library - JQuery

Back to Course

Lesson Description


Lession - #555 JQuery Install


Adding jQuery to Your sites
There are many ways that to start out using jQuery on your web site. You can:

  • Download the jQuery library from jQuery.com
  • Include jQuery from a CDN, like Google

    Downloading jQuery
    There are versions of jQuery available for downloading:

    Production version - that is for your stay website as it has been minified and compressed

    Development version - that is for testing and development (uncompressed and readable code>


    Both versions may be downloaded from jQuery.com.

    The jQuery library is a single JavaScript file, and also you reference it with the HTML [removed] tag (observe that the [removed] tag have to be inside the section>
    :

    
    <head>
    <script src="jquery-3.6.0.min.js"></script>
    </head>
    


    Tip: Place the downloaded document withinside the same directory as the pages wherein you want to apply it. jQuery CDN If you don`t need to down load and host jQuery yourself, you could include it from a CDN (Content Delivery Network>
    . Google is an instance of a person who host jQuery: Google CDN:
    
    <head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    </head>