[jQuery] Re: Finding an input's label

2008-11-10 Thread Pete
Thanks, MorningZ. Tidied up your quote nesting and it worked a treat. Bit of a braindead moment for me... I sometimes forget how painfully simple and elegant jQuery is. :)

[jQuery] Re: Finding an input's label

2008-11-10 Thread MorningZ
Keep in mind that the selector is simply a *string*, so you need to feed it a string... . $("label[for=' + this.attr("id") + ']").attr('class', 'error'); On Nov 10, 11:24 am, Pete <[EMAIL PROTECTED]> wrote: > What's the easiest way to find an input's label?  I'm trying to > evaluate this along