This jQuery plugin really makes it easy to do clientside validation. It has a bunch of standard validation methods such as a required field, valid email or url, minimum and maximum lengths for a field, etc. Example-1: minlength and maxlength Validation using Template-driven Form.Download Source Code. angular-2-4-minlength-and-maxlength-validation- example.zip. Tweet.Hibernate Annotations. Spring Framework. JQuery. Apache Struts. MyBatis. --- Angular Backbone Bootstrap 3 Bootstrap 4 D3 Ember Foundation GreenSock TweenMax Handlebars jQuery jQuery UI Lodash Modernizr Polyfill.io Polymer React React DOM Snap.svg Three.js Underscore Vueproductform").validate( . rules: prodid: required: true, maxlength: 10 A protip by leonbarrett about jquery, validation, and messages.the same value again.", accept: "Please enter a value with a valid extension.", maxlength: jQuery.
validator.format("Please enter no more than 0 characters."), minlength: jQuery.validator.format("Please enter at least 0 characters I am using JQuery validation plugin. I want to specify maxlength for one of the fields.It can be specified as below.In above example "required" is specified through class. user755806 Yes.See the full example in the link.