/** * Dutch phone numbers have 10 digits (or 11 and start with +31). */$.validator.addMethod("phoneNL",function(value,element){returnthis.optional(element)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value);},"Please specify a valid phone number.");