Description
The :first-child selector selects all elements that are the first child of their parent.
While :first
matches only a single element, the :first-child
selector can match more than one: one for each parent (equivalent to
:nth-child(1)
).
This selector has the form:
$(":first-child")