Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 451 Bytes

jquery.md

File metadata and controls

17 lines (9 loc) · 451 Bytes

jQuery

.attr()

.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()

.addClass() adds the specified class(es) to each element in the set of matched elements.

Reference: jQuery - .addClass()

Back home