.attr()
gets the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
Reference: jQuery - .attr()
.addClass()
adds the specified class(es) to each element in the set of matched elements.
Reference: jQuery - .addClass()