Home>Article>Web Front-end> What is jquery not equal to attribute selector

What is jquery not equal to attribute selector

藏色散人
藏色散人 Original
2020-12-14 10:44:58 3366browse

jquery is not equal to the attribute selector refers to the "[attribute!=value]" selector, which is used to select all elements where the specified attribute does not exist or the specified attribute value is not equal to a certain value.

What is jquery not equal to attribute selector

The operating environment of this article: windows10 system, jquery 1.11.1, thinkpad t480 computer.

Recommended: "jquery Video Tutorial"

jquery attribute is not equal to the selector is the [attribute!=value] selector; used to select all specified attributes that do not exist or All elements whose specified attribute value is not equal to a certain value.

The selector treats the attribute value as an ordinary string (this is different from the class selector). For example, $('a[rel!=nofollow]') will match c138709809d5cab2cf1156cf8471345aSome text5db79b134e9f6b82c0b36e0489ee08ed.

The following code shows how to get all elements whose ID is not equal to cheese.

    

The following code selects all input box elements whose input names are not me.

    
data
data
data

The above is the detailed content of What is jquery not equal to attribute selector. 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