Well, a simple query ajax, php and mysql. This same code changed only by the field name works normally on another page.
$(document).ready(function(){
$('#email').keyup(function(){
var Email = $(this).val();
var EmailResult = $('#div_mensagem_valida_email');
if(Email.length > 3) {
EmailResult.html('Verificando..');
var UrlToPass = 'action=email='+Email;
$.ajax({
type : 'POST',
data : UrlToPass,
url : 'include/cadastra_novo_cliente_verifica.php',
success: function(responseText){
if(responseText == 1){
EmailResult.html('<span class="error">Ops, este e-mail já está cadastrado</span>');
}
else(responseText == 0){
EmailResult.html('');
}
}
});
}else{
EmailResult.html('Aguardando...');
}
if(Email.length == 0) {
EmailResult.html('');
}
});
$('#email').keydown(function(e) {
if (e.which == 32) {
return false;
}
});
});
The input is:
<input id="email" class="form-control input-lg" type="text" name="email" autocomplete="off" placeholder="Seu e-mail" required>
It just does not happen, in Firebug it does not return error