IE11 및 Jquery Validator과 관련하여 흥미로운 문제가 있습니다. 그것은 input type = "email"과 input type = "password"에서 같은 문제가 발생하기 시작합니다. BESIDES 입력 텍스트가 있으면 기본 오류 메시지 Please enter a value that is greater or equal to undefined
이 발생합니다.Jquery Validator를 사용하여 IE11에서 비밀번호 유효성 검사가 중단됩니다.
그래서, 이메일의 입력 유형을 변경하는 첫 번째 인스턴스에서 근무 텍스트,하지만 난 텍스트로 암호 유형을 변경할 수 없습니다 - 내가 암호를 표시하지 않으 ...
I을 왜 이런 일이 일어나고 있는지, 또는 정의되지 않은 변수가 어디에서 왔는지, 심지어 어떻게 찾아야할지 모를 일이 있습니다. 어떤 제안? 아래
코드 : 실수로
$.validator.addMethod("valid_pass", function(value, element, regexpr) {
return this.optional(element) || regexpr.test(value);
}, "Your password must be between 8-15 characters and contain at least 1 number.");
$("#element1").validate({
errorPlacement: function(label, element) {
label.appendTo(element.parent('td').siblings('td'));
},
rules: {
password: { required: true, valid_pass: /^(?=.*\d).{8,15}$/ },
password2: { required: true, equalTo: "#password" }
},
messages: {
password: { required: "Create a password." },
password2: {
required: "Re-enter your password.",
equalTo: "Your passwords do not match."
}
}
});
및
<tr>
<td class="align-right"> Password: <a class="tooltip ml5" title="Password must be between 8-15 characters & include at least 1 number">(?)</a></td>
<td><input type="password" id="password" name="password" maxlength="15" tabindex="9"/></td>
</tr>
<tr>
<td class="align-right"> Confirm password: </td>
<td><input type="password" name="password2" maxlength="15" tabindex="10"/>
</td>
</tr>