1 line
860 B
JSON
1 line
860 B
JSON
{"name":"target","type":"selector","title":":target Selector","deprecated":null,"removed":null,"desc":"Selects the target element indicated by the fragment identifier of the document's URI.","categories":["selectors/basic-filter-selectors","version/1.9"],"entries":[{"return":"","signatures":{"added":"1.9"},"examples":null,"longdesc":"\n <p>If the document's URI contains a fragment identifier, or hash, then the <code>:target</code> selector will match the element with an ID that matches the identifier. For example, given a document with a URI of http://example.com/#foo, <code>$( \"p:target\" )</code> will select the <code><p id=\"foo\"></code> element.</p>\n <p>Further discussion of this usage can be found in the <a href=\"http://www.w3.org/TR/css3-selectors/#target-pseudo\">W3C CSS specification</a>.</p>\n "}],"slug":"target-selector"} |