Packages
form
4.11.7
11.4.15
11.4.14
8.3.0
8.0.0
7.10.0
7.8.0
7.7.0
7.6.2
7.6.1
7.6.0
7.4.2
7.4.1
7.4.0
7.1.0
6.11.1
6.10.7
6.10.6
6.10.5
6.10.4
6.10.2
6.10.1
6.4.0
5.12.1
5.12.0
5.8.7
5.8.6
5.8.5
5.8.4
5.8.3
5.8.2
5.8.1
5.8.0
5.7.0
5.5.0
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.1.10
5.1.9
5.1.8
5.1.7
5.1.6
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
4.12.3
4.12.2
4.12.1
4.12.0
4.11.15
4.11.14
4.11.13
4.11.12
4.11.11
4.11.10
4.11.9
4.11.8
4.11.7
4.11.6
4.11.5
4.11.4
4.11.3
4.11.2
4.11.1
4.11.0
4.10.5
4.10.4
4.10.3
4.10.2
4.10.1
4.10.0
4.7.0
4.6.0
ERP/1 X-FORM Business Cartulary
Current section
Files
Jump to
Current section
Files
man/valid.js.htm
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Maxim Sokhatsky" />
<title>VALID.JS</title>
<link rel="stylesheet" href="https://n2o.dev/blank.css" />
<link rel="stylesheet" href="https://n2o.dev/zima.css" />
<link rel="shortcut icon" type="image/x-icon" href="../img/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="../img/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="../img/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="../img/favicon-16x16.png" />
<link rel="manifest" href="../img/site.webmanifest" />
</head>
<body>
<nav>
<a href="https://n2o.dev">DEV</a>
<a href="https://form.n2o.dev">FORM</a>
<a href="#" style="background:#ededed;">VALID.JS</a>
<div class="dropdown">
<a onclick="drop()" class="dropbtn">EN</a>
<div id="dropdown" class="dropdown-content">
<a href="https://n2o.dev/deps/n2o/man/ua/n2o.js.htm">UA</a>
<a href="valid.js.htm">EN</a>
</div>
</div>
</nav>
<header>
<a href="../index.html"><img src="https://n2o.dev/img/synrc.svg" /></a>
<h1>VALID.JS</h1>
</header>
<main>
<article>
<section>
<h3>INTRO</h3>
<p>The <a href="https://github.com/synrc/form/blob/master/priv/js/valid.js">valid.js</a>
module provides JavaScript validation framework compatible with NITRO JavaScript client library.
The size of <b>valid.js</b> is 16 kilobytes.
</p>
</section>
<section>
<h3>API</h3>
<p>Client JavaScript validation functions that may prevent sending NITRO <b>#pickle</b> events.</p>
<h4>money(e, min, max, msg)</h4>
<p>Checks that input value is money.</p>
<h4>pay(e, min, max, deptype, msg)</h4>
<p>Checks that input value is acceptable payment amount of money.</p>
<h4>date(e)</h4>
<p>Checks that input value is date.</p>
<h4>card(e, msg)</h4>
<p>Checks that input value is EMV credit card.</p>
<h4>phone(e, minLength, maxLength)</h4>
<p>Checks that input value is phone.</p>
<h4>min(e, min)</h4>
<p>Checks input float value against minimum threshold.</p>
<h4>length(e, minlength, maxlength)</h4>
<p>Checks input string value against minimum and maximum threshold.</p>
<h4>calendar(e)</h4>
<p>Checks calendar input value against minimum and maximum threshold.</p>
</section>
<section>
<p>You may also want to read:
<b><a href="form.htm">form</a></b>.
</p>
</section>
</article>
</main>
<footer>2005—2019 © Synrc Research Center</footer>
<script>function drop(){document.getElementById("dropdown").classList.toggle("show");}</script>
</body>
</html>