A repository of over 1000 quality jQuery plugins

jQuery :target Selector

Learn all about the jQuery function :target Selector.

If the document’s URI contains a fragment identifier, or hash, then the :target 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, $( "p:target" ) will select the <p id="foo"> element.

Further discussion of this usage can be found in the W3C CSS specification.