Selects all paragraphs and removes those that aren't of class "selected" or the first one.
$("p").filter(".selected, :first")