What is a simple javascript function I can use to produce a validation error when submit is pressed on a form?
For example if the name field is not filled out a message will appear under the field itself indicting that this is a required field?
Thanks