Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery validate array input not working

$('[name^="reg_number"]').each(function() {
    $(this).rules('add', {
        required: true,
        minlength: 2,
        messages: {
            required: "Enter Reg Number",
            minlength: "Enter at least {0} characters",
        }
    })
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #validate #array #input #working
ADD COMMENT
Topic
Name
6+3 =