Monday, July 27, 2009

[jQuery] Re: Combine JQuery objects question

Haven't you ever had the answer to a question, but not known you had the
answer? :-)

It's like the saying we had in high school:

Freshmen know not that they know not.
Sophomores know that they know not.
Juniors know not that they know.
Seniors know that they know.

-Mike

> From: Kean
> Why post the question if you had the answer?

> > From: <yuyuhua...@gmail.com>
> > who knows if it is possible to join two jQuery objects to
> > make a new object.  For example...
> >
> > var e1 = $("#firstObject");
> > var e2 = $("#secondObject");
> >
> > var combined = e1.add(e2);  // This is the expression I'm
> looking for

No comments: