Skip to content

beshur/validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validate_ini()

Just call validize.validate_ini("[data-validate]") when window is ready. It is safe to recall it when new fields are added.

$(function() {
	validize.validate_ini("[data-validate]");
})

Code structure

The form should look like:

<div class="form_wrap">
	<form>
		<ul class="fields">
			<li>
				<label>Label</label>
				<div class="i">
					<input type="text" data-validate="email" />
				</div>
			</li>
		</ul>
	</form>
</div>

Demo

http://jsfiddle.net/beshur/D8tWs/

In this case the scripts will work out of box, though you may need to change the 'addError' and 'removeError' functions to match your taste.

About

Form validation utility

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors