Jean-Sébastien wrote: > hi, i try to select every element that is not children of another div. > i tried different ways but didn't find a solution. > > regards
Try: $('body *').filter(function() { return this.parentNode.nodeName.toLowerCase() != 'div'; }); Don't think that will perform very well, but I cannot think of another way if you need it that generic. --Klaus