On 01/01/07, John Resig <[EMAIL PROTECTED]> wrote:
> So, the only solution that'll solve your problem would by one that's
> much more verbose:
>
> $("li").filter(function(){
> return $("ol:not([EMAIL PROTECTED])", this).length == 0;
> });
I'm still battling to get this to work.
If I understand this intention of the above code,
// This (note the simplification):
$("li").filter(function(){
return $("ol", this).length == 0;
});
// Ought to select the same elements as:
$("li:not[ol]");
The first example above is not working - but I'm having trouble
establishing why.
As a back-up test... These work as expected with the svn version of
jquery (They don't in 1.0.4)
$("li").filter(function(){
return false;
});
$("li").filter(function(){
return true;
});
Any ideas?
Cheers
Ollie
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/