jquery .on() code example

Example 1: jquery

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

Example 2: jquery

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Example 3: what is jquery

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.

Example 4: jquery

<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>

Example 5: jqury

<script src="https://code.jquery.com/jquery-3.5.0.js"></script>

Example 6: jquery

<script src="https://code.jquery.com/jquery-3.5.0.js"></script>

Tags: