'*:not(div) *'

  or

'*:not(div) > *' if they must be direct descendants

This is theoretically what you need, but won't work, it will also
select the head, the body.. almost everything but the children of the
divs. As gordon said, you should explain the situation.

Ariel Flesler

On 25 feb, 09:24, Gordon <[EMAIL PROTECTED]> wrote:
> That would probably work but I wouldn't want to try it because I can't
> imagine any non-trivial page where it would complete this century. :)
> Then again I can't imagine why on Earth the OP would actually want to
> be doing this in the first place.  Perhaps if you (the OP) can give us
> a description of your problem then a better solution would present
> itself?
>
> On Feb 25, 11:52 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to