전자 메일 필드와 확인 전자 메일 필드가 있습니다. 그들의 가치가 일치하는지 확인하기 위해 두 가지를 모두 검증해야합니다.jQuery 유효성 검사 플러그인으로 두 필드 일치
두 필드를 일치시키는 규칙을 추가하는 방법이 있습니까?
$('#myform').validate({
rules: {
email: 'required',
emailConfirm: {
equalTo: '#email'
}
}
});
http://stackoverflow.com/questions/931687/using-jquery-validate-plugin-to-validate-multiple-form-fields-with-identical을 사용할 수 있습니다 -name – Zirak