Skip to content
BrunoRB edited this page Nov 26, 2014 · 9 revisions

Validarium wiki!

Validarium is a Jquery plugin for easy validation of forms. Its idea is to use HTML attributes in the tags to describe the rules (in data-rules-xxxxxx attributes), making it easy to add and even modify dynamically any validation requirements on forms. It is also mostly compatible with Jquery Validate, making it easy to reuse code meant for Validate or to convert existing code.

Check get started to learn how to use it quickly.

FAQ can help you with some common questions.

Options

See options.

Plugin documentation

Below is the documentation of each of the validation methods supported natively by Validarium. How to write a new plugin: newplugin.

Plugins executed on every key typed or click

  • date: Date
  • dateiso: Date in iso format
  • digits: Digits only
  • email: Email
  • equalto: Compare two fields and ensure they are equal
  • mask: Fit in a given mask
  • max: Maximum numeric value for a string
  • maxlength: Maximum length for a string
  • min: Minimum numeric value for a string
  • minlength: Minimum length for a string
  • number: Numeric field (floating point)
  • regexp: regular expression validation
  • required: required field
  • url: url
  • cpf: Validates the Brazillian CPF number.
  • url: Validates the Brazillian CNPJ number.

Plugins executed on blur/focus out

Plugins executed on submit only