hide everything except the first element with jquery

Viewed 10431

Is there a one lined way to hide all of a certain type of elements in one selector. I know you could do this:

$('p').hide();
$('p:first(or :eq(0)').show()

Possibly something like this:

$('p:eq(>0)')
2 Answers
Related