Answers for "lenght validation using jquey valisaton"

0

lenght validation using jquey valisaton

jQuery.validator.addMethod("exactlength", function(value, element, param) {
 return this.optional(element) || value.length == param;
}, $.validator.format("Please enter exactly {0} characters."));
Posted by: Guest on July-02-2020
0

lenght validation using jquey valisaton

$("#formtovalidate").validate({
  rules: {
    somefield: {
      exactlength: 10
    }
   });
Posted by: Guest on July-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language