User login

User login

The code

Instantiate and set options

window.addEvent('domready', function(){
new FormCheck('formular', {
display : {
errorsLocation : 3,
indicateErrors : 2,
flashTips : true,
fadeDuration : 1000
}
})
});

Options

Validation
  • on leave a field
  • on submit the form

Display
  • Show errors under the field
  • Display all errors at once
  • Alerts flash on submit if errors remain
  • The submit button is an anchor with class validate['submit']
  • Fades are longer than usual (1 second)