views:

28

answers:

1

I'm using Jquery's form validation plugin. I wanna display validation error messages inside the fields that are invalids.

For example, if the email field is invalid, I wanna clear its content and display the message above it. I say above, 'coz there's no need to change the content to the error message.

How is that?

+1  A: 

This pretty much sums it up:

jQuery Validation Plugin Example

I would recommend leaving the bad field values in place when you issue error messages. It gives the user a chance to see what they've done wrong and correct it.

Pat
+1 For leaving the bad value in place
Jon P