Cross Browser HTML5 Form Validation.

Related tags

Validation validatr
Overview

Validatr

Cross Browser HTML5 Form Validation.

Getting Started

View the documentation to learn how to use Validatr.

Changelog

Version 0.5.1 - 2013-03-12

  • Fixed $target bug introduced in 0.5.0

Version 0.5.0 - 2013-03-11

  • Added unit tests for the jQuery instance and the widget
  • Fixed typo 'defualtOptions' - now 'defaultOptions'
  • Re-structured code to prep for more robust formatting and adding more input types

Version 0.4.2 - 2013-03-03

  • Default error message styles now inline - removed CSS file
  • No longer overwriting this.options.template, now this.template
  • Changes to documentation
Comments
  • Allow unstyled errors

    Allow unstyled errors

    I would like to integrate this into my company's framework but the inline styles for the error messaging means that I will have to modify the plugin source in order to remove that. I know there are a few options for placement and theme but I cannot see one where all styles are removed.

    Could you give the option to remove all inline styles? Can these be set by default? Could you also add an option for a custom class name for the errors?

    opened by mrmartineau 4
  • Email Validation

    Email Validation

    It seems to be validating email addresses without a TLD. e.g. "abc@abc" validates.

    UPDATE: Upon further research there are use cases for email addresses without a top level domain.

    invalid wontfix 
    opened by taits 1
  • Date Validation not working in Chrome

    Date Validation not working in Chrome

    In Chrome Version 25.0.1364.97 the date validation is not passing when a date is entered as mm/dd/yyyy and only passes for yyyy-mm-dd. Is there anyway this can be fixed?

    Thanks for your consideration!

    invalid wontfix 
    opened by TheJudge454 1
  • Added bower.json file

    Added bower.json file

    Here is a proposed bower.json file. I had previously opened an issue but decided to go ahead and start it (see https://github.com/jaymorrow/validatr/issues/12). Do we need to add more dependencies or change the jquery one? Perhaps add the devdependencies for grunt? If so which ones are needed. I'll leave it up to the repo owner to register this with bower.io.

    opened by pho3nixf1re 0
  • Add new 'position' filter to allow for unstyled error positioning

    Add new 'position' filter to allow for unstyled error positioning

    Add another 'location' option for 'none' to allow users to position the errors in any place they like.

    New filter: 'position' introduced and removed leftright and topbottom.

    opened by mrmartineau 0
  • $target.on is undefined

    $target.on is undefined

    I have sometimes a javascript error : $target.on is undefined It seems there is a mistake in version 0.5.0 : line 559,

        $target = target;
    

    It should be

        $target = $(target);
    
    bug 
    opened by micolator 0
  • fieldset break validatr

    fieldset break validatr

    my quick fix is:

    function validateForm(elements) { var valid = true; elements.each(function (i, element) { if (element.type !== 'fieldset') { if (!validateElement(element)) { valid = false; } } });

        return valid;
    }
    
    bug 
    opened by logemann 0
  • How can i retrieve element and position data?

    How can i retrieve element and position data?

    I am using Javascript Custom Forms which replaces some elements with fake ones. In the case of select elements it moves them 9999 px to the left.

    I would usually do something along the lines of:

        function positionForSelect(event){
            var e = window.event || event;
            var t = e.target || e.srcElement;
            if (t.nodeName.match(/select/i)) {
                // move errormessage 9999px to the right
            } else {
                // normal behavior
            }
        }
    

    *edit: I want to position the error validation message next to the fake select

    Can you help me out on this one?

    opened by Puddingboy 0
  • Error message offset for bottom position

    Error message offset for bottom position

    Error message's offset for bottom position was not correct it was adding message's height to target's offset however target's height should be added to target's offset to get message at right position.

    opened by tbhardwaj 0
FieldVal - multipurpose validation library. Supports both sync and async validation.

FieldVal-JS The FieldVal-JS library allows you to easily validate data and provide readable and structured error reports. Documentation and Examples D

null 137 Sep 24, 2022
Lightweight JavaScript form validation library inspired by CodeIgniter.

validate.js validate.js is a lightweight JavaScript form validation library inspired by CodeIgniter. Features Validate form fields from over a dozen r

Rick Harrison 2.6k Dec 15, 2022
jQuery form validation plugin

jQuery.validationEngine v3.1.0 Looking for official contributors This project has now been going on for more than 7 years, right now I only maintain t

Cedric Dugas 2.6k Dec 23, 2022
Lightweight and powerfull library for declarative form validation

Formurai is a lightweight and powerfull library for declarative form validation Features Setup Usage Options Methods Rules Examples Roadmap Features ?

Illia 49 May 13, 2022
Facile is an HTML form validator that is inspired by Laravel's validation style and is designed for simplicity of use.

Facile is an HTML form validator that is inspired by Laravel's validation style and is designed for simplicity of use.

upjs 314 Dec 26, 2022
HTML 5 & Bootstrap Jquery Form Validation Plugin

HTML 5 & Bootstrap Jquery Form Validation Plugin HTML 5 & Bootstrap 5 & Jquery 3 jbvalidator is a fresh new jQuery based form validation plugin that i

null 37 Dec 6, 2022
This Login Form made using React hooks , React Js , Css, Json. This form have 3 inputs, it also validate those inputs & it also having length limitations.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Yogesh Sharma 0 Jan 3, 2022
jQuery Validation Plugin library sources

jQuery Validation Plugin - Form validation made easy The jQuery Validation Plugin provides drop-in validation for your existing forms, while making al

null 10.3k Jan 3, 2023
String validation

validator.js A library of string validators and sanitizers. Strings only This library validates and sanitizes strings only. If you're not sure if your

null 20.7k Jan 5, 2023
jQuery Validation Plugin library sources

jQuery Validation Plugin - Form validation made easy The jQuery Validation Plugin provides drop-in validation for your existing forms, while making al

null 10.3k Jan 3, 2023
The most powerful data validation library for JS

joi The most powerful schema description language and data validator for JavaScript. Installation npm install joi Visit the joi.dev Developer Portal f

Sideway Inc. 19.6k Jan 4, 2023
Dead simple Object schema validation

Yup Yup is a JavaScript schema builder for value parsing and validation. Define a schema, transform a value to match, validate the shape of an existin

Jason Quense 19.2k Jan 2, 2023
Schema-Inspector is an JSON API sanitisation and validation module.

Schema-Inspector is a powerful tool to sanitize and validate JS objects. It's designed to work both client-side and server-side and to be scalable wit

null 494 Oct 3, 2022
:white_check_mark: Easy property validation for JavaScript, Node and Express.

property-validator ✅ Easy property validation for JavaScript, Node and Express Built on top of validator.js, property-validator makes validating reque

Netto Farah 160 Dec 14, 2022
A simple credit cards validation library in JavaScript

creditcard.js A simple credit cards validation library in JavaScript. Project website: https://contaazul.github.io/creditcard.js Install creditcard.js

ContaAzul 323 Jan 7, 2023
v8n ☑️ ultimate JavaScript validation library

The ultimate JavaScript validation library you've ever needed. Dead simple fluent API. Customizable. Reusable. Installation - Documentation - API Intr

Bruno C. Couto 4.1k Dec 30, 2022
A lightweight NodeJS library for strict mime-type validation on streams

A lightweight NodeJS library for strict mime-type validation on streams. It gets a ReadableStream and decets the mime-type using its Magic number and validates it using the provided allowed and forbidden lists; If it's allowed it will pass it to the created WritableStreams and if it's not it will throw an error.

CEO of Death Star 9 Apr 3, 2022
📫 Offline email validation - JS or TS

email-seems-valid An offline check to see if an email seems valid. Contains TS or JS packages for browser or Node.js emailSeemsValid('[email protected]')

earnifi 12 Dec 25, 2022
TypeScript-first schema validation for h3 and Nuxt applications

h3-zod Validate h3 and Nuxt 3 requests using zod schema's. Install npm install h3-zod Usage import { createServer } from 'http' import { createApp } f

Robert Soriano 48 Dec 28, 2022