February 2019
Beginner to intermediate
284 pages
6h 20m
English
JQuery is not a standard technology, but it's a de facto Web standard. It uses CSS selectors to locate elements in any HTML file, and provides the same power as the DOM but with a much cleaner syntax. To use JQuery, you first need to include its library in your HTML page using the <script> tag. This is easily done with a CDN URL:
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
The code fragment here is a page that uses JQuery to perform the exact same operations shown in the last DOM example. The result is much easier to understand (Examples/example-6.html):
<html><body><head> <style> #my-section { cursor: pointer; } </style></head><h1>Simple page</h1><p>Simple paragraph</p><div id="my-section"> <img ...Read now
Unlock full access