Mega Code Archive

 
Categories / JavaScript DHTML / Jquery
 

Remove all elements that have a descendant ol element

$("p").filter(function(index) {    return $("ol", this).length == 0;  });