Uncaught TypeError: Cannot read property 'call' of undefined Uncaught TypeError: Cannot read property 'call' of undefined jquery jquery

Uncaught TypeError: Cannot read property 'call' of undefined


Replace minlen with minlength, and it works, there is no minlen property, so call fails internally

$('form').validate({    rules: {        first_name: {            minlength: 3,  // <- here            maxlength: 15,            required: true        },        last_name: {            minlength: 3,            maxlength: 15,            required: true        },   ..........


Generally speaking this is an error that can be raised if you have set a non valid jQuery validation rule.
You can find the valid validation rules using this link.


$(document).ready(function() {    jQuery.validator.addMethod("noSpace", function(value, element){            return value.indexOf("  ")<0 && value !=="";     }, "Space are not allowed");});