Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

Selects all paragraphs and removes not selected or the first one

$("p").filter(".selected, :first")