Validating phone number in javascript

One core value of this library is that nothing should be private or inaccessable.If you want to modify which values are considered empty for example you can simply overwrite You can find some basic examples included in the project.Though for the datetime and date validator to you need to specify a parse and format function and for that you most likely will want to use a library, is highly recommended.If you want to use async validation you need to use a runtime that supports Promises.The project can be found on Git Hub where you can also find our issue tracker.


The native HTML form validate has been disabled in a demo purpose so that you may see how works in action.The attributes must be a plain object or a form element, things like backbone models etc are not supported.For the format of the constraints see the constraints section.provides a declarative way of validating javascript objects.

It is unit tested with 100% code coverage and can be considered fit for production.

You can use the async validate function even if no validations are async, it still returns a promise.


  1. Pingback:

  2. eric   •  

    After Megatron gained control of the facility and his new Sky Commander Starscream activated the Geosynchronous Energon Bridge, Dark Energon began flowing into the Decepticon ranks.

  3. eric   •  

    Believing that they had replaced the Jews as God's chosen people, Christians deduced that they were free to persecute and extirpate non-Christian peoples, and even that they were under a moral obligation to do so.

  4. eric   •  

    You’re charismatic, funny, and, most important, have the truth on your side.

  5. eric   •  

    Our commitment to genuine profiles means our members can be confident that the person behind the profile is real.

  6. eric   •  

    When the mag asked Charlotte who would be in her bridal party, Bear interjected that the top job would “be Gary, won’t it?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>