Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FormCheck

FormCheck is a MooTools class that allows you to perform different tests on forms to validate them before submission.

Please see the below for syntax and examples.

###Features:

  • Lightweight, shiny and fast
  • Skins support : customize css, fonts, ...
  • Cross-browser compatibibility
  • Display errors as tips, or before/after the field
  • Basic validation (required, alpha, digit, alphanu, length, confirm, ...)
  • Regex validation (phone, email, url)
  • Custom function based validation, to perform test that could not be handled by basic tests neither regex test.
  • Make easily your own custom regex and alerts
  • Internalization : we now support 10 different languages
  • Active community
  • A lot of options that allow you to customize this class to fit exactly as you want

Screenshot

How to use

Attach FormCheck to your HTML document

<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjs%2Fformcheck%2Flang%2Fen.js"> </script>
<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjs%2Fformcheck%2Fformcheck.js"> </script>

Link the desired theme

<link rel="stylesheet" href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjs%2Fformcheck%2Ftheme%2Fclassic%2Fformcheck.css" type="text/css" media="screen" />

Instantiate FormCheck class for the given form

<script type="text/javascript">
		window.addEvent('domready', function(){
    		new FormCheck('myform');
		});
</script>

Screenshots

Screenshot 1 Screenshot 2

About

MooTools Clientside Form Validation Class

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors