Probably the easiest way to duplicate what you're trying to do, in
both versions of jQuery, is to wrap the jQuery object in another:

y = $(year).find('option:eq(1)').val();

that should protect it.

--John

On 4/13/07, m3avrck <[EMAIL PROTECTED]> wrote:

Ah yes, I'm trying to make this work in 1.0 and 1.1 ;-)

ted

On Apr 13, 11:39 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Apr 13, 2007, at 9:44 AM, m3avrck wrote:
>
> > Ahhh, ok I didn't realize .find() is destructive now :-)
>
> Sorry I'm not answering the question, but I wanted to clarify
> that .find() isn't destructive now. It was only destructive pre-1.1.
>
> Cheers,
> --Karl
> _________________
> Karl Swedbergwww.englishrules.comwww.learningjquery.com


Reply via email to