0
jQuery 유효성 검사 플러그인에서 생성 된 유효성 검사 오류를 표시하는 데 WP-Pointers를 사용할 가능성이 있습니다.jQuery 유효성 검사 및 WP 포인터
이는 방법과 같은 자바 스크립트 WP-포인터 :
$('.selector').pointer({
content: '<h3>Error</h3><p>Lorem Ipsum.</p>',
position: 'right',
close: function() {
}
}).pointer('open');
이 얼마나처럼 보이는 자바 스크립트 유효성 검사를 다음 WP-포인터 스크립트로 전달 될 수 있는지 궁금
$('.registration-form').validate({
debug : true,
rules : { username : {required: true, minlength: 4},
email : {required: true, email: true}
},
messages : { username : 'Username must be atleast 4 characters long.',
email : 'Please enter a valid email address.'
},
errorLabelContainer : '.message-box',
submitHandler : function(form) {
$(form).ajaxSubmit({
success : show_registration_response,
url : ajaxVars.ajaxurl,
type : 'POST',
timeout : 10000,
clearForm : true,
resetForm : true
});
}
});
함수 또는 WP - 포인터로 오류 메시지를 표시하는 유효성 검사 스크립트 안에 뭔가?
이 해결 당함. 그러나 충분한 평판이 없으므로 다음 7-8 시간까지 답변을 게시 할 수 없습니다. – John