CSS selectors - how to select 'for' in CSS?

Viewed 14422

I'm using jQuery validation.

When for is now valid, validator is creating those:

<label class="error" for="username" generated="true">

As all label has got the same class=error can I select with CSS this exact one based on 'for'?

I know how to sort this out with jQuery - but always looking for cleanest, purest way. Any suggestion much appreciated.

Pete

3 Answers
Related