1 line
1.3 KiB
JSON
1 line
1.3 KiB
JSON
{"name":"attributeNotEqual","type":"selector","title":"Attribute Not Equal Selector [name!=\"value\"]","deprecated":null,"removed":null,"desc":"Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value.","categories":["selectors/attribute-selectors","selectors/jquery-selector-extensions","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0","argument":[{"desc":"An attribute name.","name":"attribute","type":"String"},{"desc":"An attribute value. Can be either an unquoted single word or a quoted string.","name":"value","type":"String"}]},"examples":{"desc":"Finds all inputs that don't have the name 'newsletter' and appends text to the span next to it.","code":"\n$( \"input[name!='newsletter']\" ).next().append( \"<b>; not newsletter</b>\" );\n","html":"\n<div>\n <input type=\"radio\" name=\"newsletter\" value=\"Hot Fuzz\">\n <span>name is newsletter</span>\n</div>\n<div>\n <input type=\"radio\" value=\"Cold Fusion\">\n <span>no name</span>\n</div>\n<div>\n <input type=\"radio\" name=\"accept\" value=\"Evil Plans\">\n <span>name is accept</span>\n</div>\n"},"longdesc":"\n <p>This selector is equivalent to <code>:not([attr='value'])</code>.</p>\n "}],"slug":"attribute-not-equal-selector"} |