document.querySelector, classList, addEventListener, fetch), поэтому в новых проектах jQuery встречается реже, но в существующем коде её по-прежнему много.find() // Selects elements based on the provided selector string hide() // Hides an element if it was visible show() // Shows an element if it was hidden html() // Gets or sets an inner HTML of an element append() // Injects an element into the DOM after the selected element prepend() // Injects an element into the DOM before the selected element on() // Attaches an event listener to an element off() // Detaches an event listener from an element css() // Gets or sets the style attribute value of an element attr() // Gets or sets any attribute of an element val() // Gets or sets the value attribute of an element text() // Gets the combined text of an element and its children each() // Iterates over a set of matched elements
Пять основных возможностей jQuery
Источники вдохновления