Skip to content

Instantly share code, notes, and snippets.

@kswedberg
Created June 2, 2010 20:15
Show Gist options
  • Save kswedberg/422933 to your computer and use it in GitHub Desktop.
Save kswedberg/422933 to your computer and use it in GitHub Desktop.
Prevent user from submitting form unless all required fields have been filled (fields already have class="required")
Alert user on submit if there are errors. (You may use alert() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment