Skip to content

properapp/jquery-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Validation for Meteor

Meteor implementation of Validation for jQuery.

Usage

Install via Meteorite:

mrt add jquery-validation

Add the "required" class to your markup:

<template name="exampleForm">

  <form id="validation-example">

    <label for="name">Name</label> <br>
    <input type="text" name="name" class="required"> <br>
    
    <label for="emailAddress">Email Address</label> <br>
    <input type="email" name="emailAddress" class="required email"> <br>
    
    <input type="submit" value="Validate Form" />
 
  </form>
  
</template>

And add to your template's rendered function:

Template.exampleForm.rendered = function() {
  $("#validation-example").validate(); 
}

For custom validation options and configuration, check out the jQuery validation documentation: jQuery Validation Documentation

About

jQuery validation plugin by Jörn Zaefferer, repackaged for Meteor.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •