Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Compare jQuery with modern DOM and fetch APIs.
jQuery vs Vanilla JavaScript 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 jQuery vs Vanilla JavaScript example in a small scratch file, then explain what changed and why.