Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Target elements by id and class precisely.
ID and Class Selectors is easiest to learn by reading the example, changing it, and observing the result.
$('p').css('color', 'gray'); // all paragraphs
$('#main').addClass('active'); // by id
$('.card').fadeIn(); // by class
$('input[type="email"]').focus(); // by attribute
$('.item').on('click', function () {
$(this).toggleClass('selected'); // 'this' is the clicked element
});Practice the ID and Class Selectors example in a small scratch file, then explain what changed and why.