Tip: Click lines to highlight, hold ctrl/cmd to multi-select
Filter where parent isn't (13-Jan @ 16:22)
Filters for a tag (or selector) and returns only the elements that isn't within a specific selector
Syntax Highlighted Code
- $('tag').parents(':not(selector)').find('> tag')
Plain Code
$('tag').parents(':not(selector)').find('> tag')