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

remy

Syntax Highlighted Code

  1. $('tag').parents(':not(selector)').find('> tag')

Plain Code

$('tag').parents(':not(selector)').find('> tag')

Permalink: http://codedumper.com/filter-where-parent-isnt