jQuery:Selector

:target

Overview

The target element represented by the formatted identifier of the document URI is selected.

If the document URI contains a formatted identifier, or hash (hash), then: target selector will match the ID and identifier matching elements. For example, given the URI http://example.com/#foo, $ ( “p: target”), the <p id = “foo”> element is selected.

Leave a Reply

Your email address will not be published. Required fields are marked *