K...That's what I thought. Thanks. _____
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Catchpole Sent: Friday, August 10, 2007 4:06 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Using jQuery to parse a string Just the current item. If your array was [1,2,3] and function foo(x) $.each would call: foo(1), foo(2), and foo(3) ~Sean On 8/10/07, Andy Matthews <[EMAIL PROTECTED]> wrote: So passing in x to the function actually passes in the WHOLE array of objects? Or just the current item? _____ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Catchpole Sent: Friday, August 10, 2007 3:35 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Using jQuery to parse a string Quick: x is each item of the array. Short: $.each is similar to Array.map $.each calls the function for each item in the array. If the function returns false then it stops. This is different from a map function in that a map function will replace the value in the array with what is returned by the function. ~Sean On 8/10/07, Andy Matthews <[EMAIL PROTECTED]> wrote: Sean... I have a question...when you pass in X to the anonymouse function on the 3rd line, what is x? Is it $(this), a jQuery object? How do you know what it is?