1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
{"name":"attributeEquals","type":"selector","title":"Attribute Equals Selector [name=\"value\"]","deprecated":null,"removed":null,"desc":"Selects elements that have the specified attribute with a value exactly equal to a certain value.","categories":["selectors/attribute-selectors","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0","argument":[{"desc":"An attribute name.","name":"attribute","type":"String"},{"desc":"An attribute value. <strong>Can be either an unquoted single word or a quoted string.</strong>","name":"value","type":"String"}]},"examples":{"desc":"Finds all inputs with a value of \"Hot Fuzz\" and changes the text of the next sibling span.","code":"\n$( \"input[value='Hot Fuzz']\" ).next().text( \"Hot Fuzz\" );\n","html":"\n<div>\n <label>\n <input type=\"radio\" name=\"newsletter\" value=\"Hot Fuzz\">\n <span>name?</span>\n </label>\n</div>\n<div>\n <label>\n <input type=\"radio\" name=\"newsletter\" value=\"Cold Fusion\">\n <span>value?</span>\n </label>\n</div>\n<div>\n <label>\n <input type=\"radio\" name=\"newsletter\" value=\"Evil Plans\">\n <span>value?</span>\n </label>\n</div>\n"},"longdesc":""}],"slug":"attribute-equals-selector"} |