Skip to content

hembone/validate-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Validate-js

Version 1.0

##Basic Example

<form id="validate_form" method="post" action="">

	<label>Name:</label>
	<input data-validate="required" type="text" name="name" />

	<label>Email:</label>
	<input data-validate="required, email" type="text" name="email" />

	<label>Verify Email:</label>
	<input data-validate="required, match:email|Email" type="text" name="email2" />

	<button type="submit">Submit</button>

</form>
<script src="/validate/jquery-1.11.1.min.js"></script>
<script src="/validate/jquery.validate.js"></script>

<script>
$(function() {

	$('#validate_form').validate();

});
</script>

##Available Rules

Field Type Rules
Text required, min-length, max-length, match, password, email
Password required, min-length, max-length, match, password, email
Textarea required, min-length, max-length, match, password, email
Select One required
Select Multiple required

About

Crazy simple jQuery form validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors