wellidate
v2.2.3
Published
Client side javascript validation library
Downloads
35
Readme
Client side javascript validation library
Installation
Include wellidate in the page. Then initialize wellidate instance. Validation can be defined through native html, data attributes or javascript code.
<html>
<body>
<form>
<input name="username" required maxlength="50">
<input name="email" type="email">
<input name="age" data-val-integer="Age must be an integer">
<button>Submit</button>
</form>
<script src="/scripts/wellidate.js"></script>
<script>
[].forEach.call(document.getElementsByTagName("form"), form => {
new Wellidate(form);
});
</script>
</body>
</html>