Giter Club home page Giter Club logo

validatr's People

Contributors

jaymorrow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

validatr's Issues

radio button's use of document.getElementbyName results in false positives

If you have more than 1 form on a page, it is possible to collide with another form that uses the same names for inputs. e.g.

<form>
<input type="text" name="input1" required>
</form>

<form>
<input type="radio" name="input1" value="single">
<input type="radio" name="input1" value="double">
</form>

The following would result in a non submitted second form on submit, due to the first form's input's required attribute.

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!

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?

$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);

Total invalid Elements

How can I know total invalid elements?
If form have one or more invalid element I wont to add message on top form.

Thanks.

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?

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;
}

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.

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.