Skip to content
lol.js makes it easy to provide inline form validation and save progress in local storage incase of interruption.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bower_components/jquery
.DS_Store
README.md
bower.json
index.html
index.js

README.md

lol.js: Better forms for much win.

lol.js makes it easy to provide inline form validation and save progress in local storage incase of interruption. This is a work in progress and is not ready for anything.

Values:

  1. Provide visual feedback as users fill out forms.
  2. Save progress locally as users fill out forms.
  3. Reduce HTTP requests by leveraging local storage.
  4. Delegate javascript events for much win.

As is...

    $('input').lol();
    $('input[type="tel"]').lol();

Soon!

    $(yourSelection).lol({
        pattern: {regex},       // See http://html5pattern.com/
        matches: {id},          // for confirmation fields
        invalidClass: {class},  // defaults is false
        validClass: {class}     // defaults is false
    });

Todo (in no order):

  • Handle invalide form fields.
  • Pass options as an argument to lol(). See "Soon!" above.
  • use module exports for node / browserify modules to validate on client & server
  • Update bower, jquery, and npm package info with version 1.0
Something went wrong with that request. Please try again.