[jQuery] Re: selecting spans with an attribute of "for"

2009-03-31 Thread Captain Betty
o risky things at once: using an invalid attribute, > and giving the attribute name a reserved word in javascript. That's > asking for trouble! > > cheers, > - ricardo > > On Mar 31, 8:13 pm, RobG wrote: > > > > > On Apr 1, 4:44 am, Captain Betty wrote: > &g

[jQuery] selecting spans with an attribute of "for"

2009-03-31 Thread Captain Betty
Hi everyone. I have a weird issue with selecting spans with the “for” attribute. jQuery doesn’t seem to want to select it if the span is physically on the page. Physical test (fails): I have Some text here in on the page. My jQuery: $(“span[for=lid]”).css(“background”, “red”); Nothing happe