2
http://www.gamereview.tv/email/양식은 한 번만 제출됩니다.
제출 버튼은 한 번만 작동합니다. 첫 번째 시도에서 오류가 발생하면 버튼을 다시 클릭 할 수 없습니다. 테스트 할 때 잘못된 전자 메일을 입력하십시오. 프롬프트가 표시되고 수정 한 후에는 더 이상 작동하지 않습니다. 왜 그런가요?
자바 스크립트 :
$('#submit').click(function() {
$("#message").slideUp(200,function() {
$('#message').hide();
// Kick in Validation
$('#name, #subject, #phone, #comments, #website, #verify, #email').triggerHandler("focusout");
if ($('#contact mark.error').size()>0) {
if(shake == "Yes") {
$('#contact').effect('shake', { times:2 }, 75, function(){
$('#contact input.error:first, #contact textarea.error:first').focus();
});
} else $('#contact input.error:first, #contact textarea.error:first').focus();
return false;
}
});
});
$('#contactform').submit(function(){
if ($('#contact mark.error').size()>0) {
if(shake == "Yes") {
$('#contact').effect('shake', { times:2 }, 75);
}
return false;
}
var action = $(this).attr('action');
$('#submit')
.after('<img src="assets/ajax-loader.gif" class="loader" />')
.attr('disabled','disabled');
$.post(action, {
name: $('#name').val(),
email: $('#email').val(),
phone: $('#phone').val(),
website: $('#website').val(),
subject: $('#subject').val(),
comments: $('#comments').val(),
verify: $('#verify').val()
},
function(data){
$('#message').html(data);
$('#message').slideDown();
$('#contactform img.loader').fadeOut('slow',function(){$(this).remove()});
$('#contactform #submit').attr('disabled','');
if(data.match('success') != null) $('#contactform').slideUp('slow');
}
);
return false;
});
'주의!'라는 페이지로 이동합니다. 잘못된 전자 메일 주소를 입력했으면 다시 시도하십시오. ' –
와트는이 형식의 문제입니까 ?? –