Server IP : 66.29.146.62 / Your IP : 216.73.216.2 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dokkdzvi/www/controlPanel/assets/plugins/jquery-validation/src/additional/ |
Upload File : |
/* * Dutch bank account numbers (not 'giro' numbers) have 9 digits * and pass the '11 check'. * We accept the notation with spaces, as that is common. * acceptable: 123456789 or 12 34 56 789 */ $.validator.addMethod("bankaccountNL", function(value, element) { if (this.optional(element)) { return true; } if (!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value))) { return false; } // now '11 check' var account = value.replace(/ /g, ""), // remove spaces sum = 0, len = account.length, pos, factor, digit; for ( pos = 0; pos < len; pos++ ) { factor = len - pos; digit = account.substring(pos, pos + 1); sum = sum + factor * digit; } return sum % 11 === 0; }, "Please specify a valid bank account number");