Coder Social home page Coder Social logo

authentic.js's Introduction

authentic.js

Authentic.js is a dependency-free, JavaScript client-side form validator.

Getting Started

To begin, copy the file which fits your system. Once intergrated, authentic.js currently outputs on method, authentic.init({containers: "DOM", correctClass: "string", incorrectClass: "string"}). All of these are assumed, so you can just run authentic.init() if you don't care.

Params

containers is the DOM element tree to the form you'd like to target. By default, authentic.js will search for the form element. It will ignore any form, or field in a valid form, with the novalidate attribute.

correctClass the class that will be applied to the field and form if they validate correctly.

incorrectClass the class that will be applied to the field and form if they validate incorrectly.

Fields

Right now, authentic.js will check against empty or unchanged inputs, checkbox, radio, select, and textarea elements. It determines the default value by first looking at the value attribute or the placeholder attribute.

Road Map

Right now, authentic.js is in prerelease. A full road map will be in the issues under the improvements milestone, however my main goal is intergrating all over form types and creating a demo page.

authentic.js's People

Stargazers

SDF avatar Zach Shallbetter avatar Tassio Abreu de Souza avatar Riccardo Zanutta avatar Jakub avatar Brian Greenacre avatar Dave Lunny avatar Alex Hazel avatar

Watchers

James Cloos avatar Emily Humphrey avatar Gary Fullerton avatar

authentic.js's Issues

QA example on following browsers

  • Chrome on Windows
  • Firefox for Windows
  • Internet Explorer for Windows
  • Chrome for Mac
  • Firefox for Mac
  • Safari for Mac
  • Chrome on iOS
  • Safari on iOS
  • Chrome for Android

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.