Nerdy People Matriculate

    lagden-validation

    2.0.0 • Public • Published

    Form Validation

    Build Status Coverage Status Dependency Status devDependency Status XO code style

    Simple form validation

    Install

    Via NPM

    npm install lagden-validation --save
    

    Usage

    Take a look in example

    API

    FormValidation( element [, options ] )

    Params

    Name Type Default Description
    element string OR HTMLFormElement - ID of form element OR the form element
    options object see below Initial options

    options

    Name Type Default Arguments Description
    submit function null form Callback is trigger if form is valid
    invalid function null form, invalids Callback is trigger if form is invalid
    always function null form Callback always trigger

    License

    MIT © Thiago Lagden

    Install

    npm i lagden-validation

    DownloadsWeekly Downloads

    3

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • lagden