[jQuery] Finding an input's label

[jQuery] Finding an input's label


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.