Code Monkey home page Code Monkey logo

valhalladate's Introduction

Valhalladate

Valhalladate is the default validation script for all front end validation. The validation is applied to the form element, and validation happens of fields that have either .required, .email, .password, or passwordConfirm. each input field designated for validation requires a html tag with the class ‘validation’. This will be used to provide the user with information on why the form hasn’t submitted. Error messages and classes can all be customised by providing them with options when the form validation is initialised.

Valhalladate also has the ability to use ajax to submit the form. This is done by setting the ‘ajaxRequest’ option to true and providing a function to the ‘ajaxRequestHandler’ option. This function will handle the ‘ajax’ or ‘post’ method. If ‘ajaxRequest’ is set to true without an ‘ajaxRequestHandler’ function provided an alert will be triggered and the form won’t be submitted.

Valhalladate exists in a quasi jQuery plugin state. Its basically vanilla javascript wrapped in a jQuery plugin to provide initialisation.

valhalladate's People

Contributors

adammanleys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.