Mega Code Archive
Categories
/
JavaScript Tutorial
/
JQuery
Remove all elements that have a descendant ol element
$("p").filter( function(index) { return $("ol", this).length == 0; });