[jQuery] Re: how do iterate through array of JQery objects

2007-08-24 Thread Neal
Thank you Both Richard and Karl, .each() works perfectly. I'm new to JQuery, but I'm catching on. Regards, Neal On Aug 23, 10:28 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > I should've checked that. Thanks. > > - Richard > > On 8/23/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > > >

[jQuery] Re: how do iterate through array of JQery objects

2007-08-23 Thread Richard D. Worth
I should've checked that. Thanks. - Richard On 8/23/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > > On Aug 23, 2007, at 8:39 AM, Richard D. Worth wrote: > > I assume .hash is an expando property on your anchor? Or maybe you want > $(this).attr('href')? A little more slimming: > > > Hi Richar

[jQuery] Re: how do iterate through array of JQery objects

2007-08-23 Thread Karl Swedberg
On Aug 23, 2007, at 8:39 AM, Richard D. Worth wrote: I assume .hash is an expando property on your anchor? Or maybe you want $(this).attr('href')? A little more slimming: Hi Richard, .hash is actually a native property in the same way that .href or .pathname is. It just grabs the # symbo

[jQuery] Re: how do iterate through array of JQery objects

2007-08-23 Thread Richard D. Worth
On 8/22/07, Neal <[EMAIL PROTECTED]> wrote: > > > I'm having problems iterating through an array of JQuery objects. > Here's my code: > var x = $("#skip a"); > > for (var i=0;i var n = x[i]; > $(n).click(function(){ > $(n.hash).hide(); > $("#primary h