Mega Code Archive

 
Categories / JavaScript DHTML / Jquery
 

Selects all paragraphs and removes those that arent of class selected or the first one

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