Category: jQuery Extensions

Category: jQuery Extensions

jQuery has extended the CSS3 selectors with the following selectors. Because these selectors are jQuery extension and not part of the CSS specification, queries using them cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using these selectors, first select some elements using a pure CSS selector, then use .filter().

:animated Selector

Select all elements that are in the progress of an animation at the time the selector is run.

:eq() Selector

Select the element at index n within the matched set.

:gt() Selector

Select all elements at an index greater than index within the matched set.

:has() Selector

Selects elements which contain at least one element that matches the specified selector.

:header Selector

Selects all elements that are headers, like h1, h2, h3 and so on.

:lt() Selector

Select all elements at an index less than index within the matched set.

:odd Selector

Selects odd elements, zero-indexed. See also even.

:parent Selector

Select all elements that have at least one child node (either an element or text).

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/category/selectors/jquery-selector-extensions

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部