
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
auto-validation-form
Advanced tools
npm install auto-validation-formnpm install auto-validation-form
<script type="module" src="./app.js"></script>
import { Validator } from './node_modules/auto-validation-form/validator.js';
var form = new Validator('#idForm', '.classNameFormGroup', '.classNameErrorMessage');
| Rules's name | Uses |
|---|---|
| required | Is input required? |
| Verify email is correct. | |
| min | Minimum characters for input. |
| max | Maximum characters for input. |
| confirmPassword | Verify input "Re-enter password". |
| checked | Is type="radio" and type="checkbox" of input required? |
<form action="" method="POST" class="form" id="register-form">
<div class="title">Welcome</div>
<div class="subtitle">Let's create your account!</div>
<div class="form-group">
<input id="fullname" name="fullname" class="input" rules="required" type="text" placeholder=" " />
<label for="fullname" class="placeholder">Full name</label>
<span class="form-message"></span>
</div>
<div class="form-group">
<input id="email" name="email" class="input" rules="required|email" type="text" placeholder=" " />
<label for="email" class="placeholder">Email</label>
<span class="form-message"></span>
</div>
<button type="text" class="submit">Submit</button>
</form>
...
.form-group {
height: 50px;
position: relative;
width: 100%;
margin-top: 40px;
}
.form-message {
font-size: 1rem;
line-height: 1.2rem;
padding: 4px 0 0;
color: #f33a58;
}
Validator('#register-form', '.form-group', '.form-message');
// Validator('#idForm', '.classNameFormGroup', '.classNameErrorMessage');
FAQs
Validation form for website, for sign in and sign up form.
We found that auto-validation-form demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.