YouTip LogoYouTip

Sel Attribute Notequal Value

jQuery [attribute!=value] Selector

jQuery [attribute!=value] Selector

-- Learning not just skills, but dreams!

jQuery Tutorial

jQuery Tutorial jQuery Introduction jQuery Installation jQuery Syntax jQuery Selectors jQuery Events

jQuery Effects

jQuery Hide/Show jQuery Fading jQuery Sliding jQuery Animation jQuery Stop Animation jQuery Callback jQuery Chaining

jQuery HTML

jQuery Get jQuery Set jQuery Add Elements jQuery Remove Elements jQuery CSS Classes jQuery css() Method jQuery Dimensions

jQuery Traversing

jQuery Traversing jQuery Ancestors jQuery Descendants jQuery Siblings jQuery Filtering

jQuery Ajax

jQuery AJAX Introduction jQuery load() Method jQuery get()/post() Methods

jQuery Other

jQuery noConflict() Method jQuery JSONP

jQuery Examples

jQuery Examples

jQuery Reference

jQuery Selectors jQuery Event Methods jQuery Effects Methods jQuery HTML / CSS Methods jQuery Traversing Methods jQuery AJAX Methods jQuery Misc Methods jQuery Properties

jQuery Plugins

jQuery Validate jQuery Cookie jQuery Accordion jQuery Autocomplete jQuery Growl jQuery Password Validation jQuery Prettydate jQuery Tooltip jQuery Treeview

jQuery Examples

jQuery Event Methods

Explore

Programming

Software

Development Tools

Web Design & Development

Web Services

Programming Languages

Scripting Languages

Computer Science

Scripting

Web Service

jQuery [attribute!=value] Selector

jQuery Selectors jQuery Selectors

Example

Select all <p> elements where the class attribute is not "intro":

$("p[class!='intro']")

Try it yourself Β»


Definition and Usage

The [attribute!=value] selector selects each element that does not have the specified attribute with the specified value.

Elements that have the specified attribute, but not the specified value, are also selected.


Syntax

$("[_attribute!_=_'value'_]")
Parameter Description
attribute Required. Specifies the attribute to search for.
value Required. Specifies the value to search for.

jQuery Selectors jQuery Selectors

← Sel Attribute Prefix ValueSel Attribute Equal Value β†’