:only-of-type selectorThe jQuery :only-of-type selector is used to select all elements that have no siblings with the same element name.
:only-of-type selector Syntax$(':only-of-type')
:only-of-type selector ExamplesIn below example,We will hightlight each p tag element that is the only child p element of its parent.
Try now
