Pete Mon, 10 Nov 2008 09:09:18 -0800
What's the easiest way to find an input's label? I'm trying to evaluate this along the lines of the following, but this doesn't work:
$('label[for=this.attr("id")]').attr('class', 'error'); Any help appreciated.