> > $("#field1").and("#field2").length
> Wouldn't that be essentially the same as $("#field1, #field2").length
> == 2 ?
Yes, if you just wanted to know if both were there, a check for the
length would be sufficient. If you want to work on the elements,
though, the .and() plugin will return either [] or [#field1, #field2]
to the chain.
The .or() method seems more useful for the cases I encounter,
actually.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---