Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (38 sloc) 1.658 kB
<?xml version="1.0"?>
<entry type="selector" name="attributeNotEqual" return="">
<title>Attribute Not Equal Selector [name!="value"]</title>
<argument name="attribute" type="String">
<desc>An attribute name.</desc>
<argument name="value" type="String">
<desc>An attribute value. Can be either an unquoted single word or a quoted string.</desc>
<desc>Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.</desc>
<p>This selector is equivalent to <code>:not([attr="value"])</code>.</p>
<note id="jquery-selector-extension-alt" type="additional" data-selector="[name!=&quot;value&quot;]" data-alt="$(&quot;your-pure-css-selector&quot;).not('[name=&quot;value&quot;]')"/>
<desc>Finds all inputs that don't have the name 'newsletter' and appends text to the span next to it.</desc>
<code><![CDATA[$('input[name!="newsletter"]').next().append('<b>; not newsletter</b>');]]></code>
<input type="radio" name="newsletter" value="Hot Fuzz" />
<span>name is newsletter</span>
<input type="radio" value="Cold Fusion" />
<span>no name</span>
<input type="radio" name="accept" value="Evil Plans" />
<span>name is accept</span>
<category slug="selectors/attribute-selectors"/>
<category slug="selectors/jquery-selector-extensions"/>
<category slug="version/1.0"/>
Jump to Line
Something went wrong with that request. Please try again.