JavaScript, where newlines will get converted to statement breaks automatically!

So:
return
"foo";

Is actually being processed as:
return;
"foo";

See the problem yet? :) The problem is your formatting, not the code.

--Erik


On 9/18/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> Still doesn't work.  :(
>  http://www.commadot.com/jquery/selectorNot.php
>
> Glen
>
>
> On 9/18/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> >
> > > Andy,  I can't seem to get this code below to work.
> > >  http://www.commadot.com/jquery/selectorNot.php
> >
> > You want:
> >
> > $('#container').children().filter(function() {return
> > $(this).css('position') == 'relative';})...;
> >
> > That $('div', this) that you're doing is looking for divs that are
> > children of your 2 divs, which there aren't any, so nothing happens.
> >
> > --Erik
> >
>
>

Reply via email to