Home

Awesome

validate_helper

validate_helper.js is a jquery plugin that helps you use validate.js to validate forms, without the need for creating the validation object. Rather you simply add few attributes to the form elements as stated below. visit validatehelper.herokuapp.com to check out the form validation example and documentation.

In addition to that validate_helper uses bootstrap to display the error messages.

Special thanks to Rick Harrison for Validate.js. Its awesome!

Libraries required

Form attributes to be added

<form name="loginForm" id= "loginForm" action="#" method="POST">
  <div class="control-group">
    <input type="text" name="email" id="email" data-rules="required|valid_email" data-rules="Email" class="validate">
    <p class="help-block"></p>
  </div>
  <div class="control-group">
    <input type="password" name="password" id="password" data-rules="required" class="validate">
    <p class="help-block"></p>
  </div>
  <button type="submit" class="btn">Sign in</button>
</form>
<script>
var $my_form =  $("#loginForm")
$my_form.validate()
</script>
<script>
var $my_form =  $("#loginForm")
$my_form.validate(function($form, e){ alert("submitted") })
</script>

Contact Email: mahilis@live.com