Latest web development tutorials

jQuery: only-of-type selector

jQuery selector jQuery selector

Examples

Each <p> element to select only part of their parent <p> element:

$("p:only-of-type")

try it"

Definition and Usage

: Only-of-type selector to select each element belonging to the only child of its parent element of a specific element type.


grammar

$(":only-of-type")


jQuery selector jQuery selector