[jQuery] jQuery validation and error messages

[jQuery] jQuery validation and error messages


I don't really know where to start on this, but I need to take a form
like:
<input name="username" type="text" id="username" />

input description


And put an icon [the error label] next to input on success or fail;
but also change the

's text on success or fail.
So a fail would change the message to whatever the message was, and on
success it would return it back to it's normal text.
Or to make it more simple, how can I change the

's text but return
it back to its default on success?