[jQuery] Re: Newbie question- declarative selectors inside procedural code

2009-05-26 Thread colin_e
trouble remembering exactly which bits of syntax will or won't work with each! Thanks again to Jason, my little dynamic map works like a charm. Regards: colin_e On May 25, 8:29 pm, kiusau kiu...@mac.com wrote: On May 25, 3:44 am, Jason Persampieri papp...@gmail.com wrote: Certainly... you're

[jQuery] Newbie question- declarative selectors inside procedural code

2009-05-25 Thread colin_e
to say Give the current object (an il), return the class attribute of the first anchor that is a child of the current item. I suspect I haven't got the right idea at all, can anyone point me in the right direction? Regards: colin_e

[jQuery] Re: Newbie question- declarative selectors inside procedural code

2009-05-25 Thread colin_e
quivalent to Firebug so i'm slightly stuck on how to try to debug it. Anyway, in Firefox it works like a charm. Thanks for the help, much appreciated! Regards: colin_e On May 25, 11:44 am, Jason Persampieri papp...@gmail.com wrote: Certainly... you're really not all that far off at all... let me

[jQuery] Re: Newbie question- declarative selectors inside procedural code

2009-05-25 Thread colin_e
('a').filter(:first-child) /* get all direct children of this, grab just the first one, then filter out all remaining, but leave a's */ $(this).children().eq(0).filter(a) On May 25, 5:44 am, colin_e colin.ev...@nhs.net wrote: That is very, very helpful, thanks! I knew I hadn't found

[jQuery] Re: Newbie question- declarative selectors inside procedural code

2009-05-25 Thread colin_e
In fact I tried an alert() to see what the code was doing, and it now looks as if it's not running at all. Don't you just love IE6? On May 25, 4:49 pm, colin_e colin.ev...@nhs.net wrote: I hate to say this but i'm using IE6 for compatibility testing because that (like it or not) is still our