Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Select elements by attribute name and value.
Attribute 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 Attribute Selectors example in a small scratch file, then explain what changed and why.