jQuery [attribute!=value] Selector (original) (raw)
Last Updated : 11 Jul, 2025
The jQuery **[attribute!=value] selector in jquery is used to select each element that doesn't have the specified attribute and value.
**Syntax:
$("[attribute!='value']")
**Parameter:
- **attribute: This parameter is required to specify the attribute to be searched.
- **value: This parameter is required to specify the value to be searched.
**Example 1:
HTML `
jQuery [attribute!=value] SelectorWelcome to GeeksForGeeks
Geeks
For
GEEKS
Who is your favourite:- Geeks1
- Geeks2
- Geeks3
`
**Output:
**Example 2:
HTML `
jQuery [attribute!=value] SelectorWelcome to GeeksForGeeks
Geeks
For
GEEKS
Who is your favourite:- Geeks1
- Geeks2
- Geeks3
`
**Output:
