Remove all elements that have a descendant ol element
$("p").filter(function(index) { return $("ol", this).length == 0; });