英国邮政编码包含大写字母和整数。当用户输入邮政编码时,所有字母应自动为大写。强制执行此操作的一种方法是使用 JQuery 输入掩码。但是,我正在努力使语法正确。
$(".maskToUpper").inputmask("AAAAAAAAAA", { autoCasing: "upper" });
我收到错误消息
Unhandled exception at line 46, column 13 in http://localhost:60858/Scripts/jquery.inputmask/jquery.inputmask.js
0x800a01bd - JavaScript runtime error: Object doesn't support this action