[jQuery] Filter and not bug

[jQuery] Filter and not bug

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=421280019-29072006>>
</SPAN>$(expr).not("#a, #b, #c") only removes elements matching #a from the
</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><FONT><FONT
face="Times New Roman"><FONT color=#000000><FONT size=3><SPAN
class=421280019-29072006>> </SPAN>list of matched elements returned by
$(expr).</FONT></FONT></FONT></FONT><BR clear=all></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=421280019-29072006><FONT face=Arial
color=#0000ff size=2>As far as I can tell the .not() and .filter()
currently don't support the "," or "|" selector operators. The .find() does
support them and that's what $() uses to select nodes. I
think the :not selector in a .filter() would work, but you would have to
apply a separate :not for each id since the comma doesn't work.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421280019-29072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN
class=421280019-29072006>$(expr).filter(":not(#a):not(#b):not(#c)")</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421280019-29072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421280019-29072006><FONT face=Arial
color=#0000ff size=2>Your workaround is probably the easiest for the
moment.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421280019-29072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/