Remove all elements that have a descendant ol element : Selector relation « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- Selector relation
Remove all elements that have a descendant ol element
$("p").filter(function(index) {
return $("ol", this).length == 0;
});
Related examples in the same category