I expanded my demo page to show the different possibilities.
http://www.commadot.com/jquery/selectors/
John/Gordon, your code doesn't seem to find the grandchildren.
This one just was itching at my mind, but I think I found the perfect
selector:
$("#container *").not(".notme") //notice the *
Im not sure why children() didnt pick up the grandkids.
Tested in FF/IE7
Glen
On 7/4/07, Gordon <[EMAIL PROTECTED]> wrote:
$("#container").children ().not(".class2")
On Jul 3, 11:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'd like to be able to select all elements in a container except
> element.class2 for example, is that possible?
>
> Thanks... haven't found any docs on this!