Basic jQuery form validation


/ Published in: JavaScript
Save to your folder(s)

CSS:
.error
style the error class

Form HTML:
class="required"
makes the input field required

minlength="2"
makes the field require at least 2 characters

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.