Created
July 21, 2012 07:22
-
-
Save victorjonsson/3154955 to your computer and use it in GitHub Desktop.
jQuery Form Validator, example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" onsubmit="return $(this).validate()"> | |
<p> | |
Name (4 characters minimum): | |
<input name="user" data-validation="validate_min_length length4" /> | |
</p> | |
<p> | |
Birthdate (yyyy-mm-dd): | |
<input name="birth" data-validation="validate_birthdate" /> | |
</p> | |
<p> | |
Website: | |
<input name="website" data-validation="validate_url" /> | |
</p> | |
<p> | |
<input type="submit" /> | |
</p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment