Latest web development tutorials

jQuery: target selector

jQuery selector jQuery selector

Definition and Usage

: Target selector to select the target element by the document URI format identifier represents.

Tip: If the document contains a URI formatted identifier or hash (hash), then: target selector will match the ID and an identifier that matches the element. For example, a given URI http://example.com/#foo, then $ ( "p: target") , will select <p id = "foo"> element.



grammar

$( ":target" )


jQuery selector jQuery selector