Home  >  Article  >  Web Front-end  >  There are several selectors in jquery

There are several selectors in jquery

coldplay.xixi
coldplay.xixiOriginal
2020-12-23 11:14:019671browse

jquery’s selectors include: 1. Basic selector [#id]; 2. Hierarchical selector [parent > child]; 3. Basic filter selector [:first]; 4. Form selection [:input]; 5. Form filter selector [:enabled].

There are several selectors in jquery

The operating environment of this tutorial: windows7 system, jquery3.2.1 version, Dell G3 computer.

Recommended: jquery video tutorial

jquery selectors are:

a, basic selector: #id, class, element, *;

b, hierarchical selector: parent > child, prev next, prev ~ siblings

c, basic filter selector: :first, :last,: not, :even, :odd, :eq, :gt, :lt

d, form selector: :input, :text, :password, :radio, :checkbox, :submit, etc.;

e, form filter selector: :enabled, :disabled, :checked, :selected

Related free learning recommendations: javascript (video)

The above is the detailed content of There are several selectors in jquery. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn