Показать сообщение отдельно
  #10 (permalink)  
Старый 30.08.2014, 23:18
Профессор
Отправить личное сообщение для Rise Посмотреть профиль Найти все сообщения от Rise
 
Регистрация: 07.11.2013
Сообщений: 457

Sergei-b84,
function check_email() {
	var email = $('#email').val();
	var error = $('#email_error');
	var rturn = false;
	if (validateEmail(email)) {
		$.ajax({
			type: 'POST',
			url: 'email_pass_check.php',
			data: { email: email },
			async: false,
			success: function(result) {
				if (+result) {
					rturn = true;
					error.hide();
				} else {
					error.show().html('The email address you entered does not belong to any account. You can login using any email associated with your account. Make sure that it is typed correctly.');
				}
			}
		});
	} else {
		error.show().html('Please enter an email address in the following format [email]ani@lookingschools.com[/email]');
	}
	return rturn;
}
Ответить с цитированием