Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Load jQuery from a CDN and verify it is available.
Install jQuery via CDN is easiest to learn by reading the example, changing it, and observing the result.
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>jQuery page</title></head>
<body>
<button id="hello">Click me</button>
<p id="output"></p>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script>
$(function () {
$('#hello').on('click', function () {
$('#output').text('jQuery is working!');
});
});
</script>
</body>
</html>Practice the Install jQuery via CDN example in a small scratch file, then explain what changed and why.