Skip to content

Instantly share code, notes, and snippets.

@chrsr
Created January 31, 2012 00:37
Show Gist options
  • Save chrsr/1707845 to your computer and use it in GitHub Desktop.
Save chrsr/1707845 to your computer and use it in GitHub Desktop.
Inline validate.js usage
input.addEventListener('blur', function () {
var errors = document.getElementById("errors");
validator.validateField(this);
errors.innerHTML = validator.errors[0] || "";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment