jquery検証プラグインを使用してjqueryで時間を検証しています...しかし、常にエラーが表示され、本当に髪を引っ張っています。
キャッチされていない TypeError: 未定義のメソッド 'addMethod' を呼び出せません
$("input").blur(function() {
//var check =$(this).closest('tr').find('input');
$(this).each(function() {
$.validator.addMethod(this, function(value, element) {
return this.optional(element) || /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/i.test(value);
}, "Please enter a valid time.");
$("#check").validate({
rules: {
input: "required time"
}
});