0
I have a formulário de e-mail simples
, and when you click "Send" the "status" appears next to the button, for example:
Enquanto envia
, appears "Sending..." (this is already working)
The problema
is as follows:
My form is in the "index", and the action do form
is in another file "email.php".
How do I make for the JQuery
receive the retorno
of "email.php" and know if the email was sent or not, in order to update the "status"
On the index:
<script type="text/javascript">
$(document).ready(function(){
$('#email').submit(function() {
$('#emlst').text('Enviando...');
//if do retorno
});
});
</script>
Without even knowing the code becomes difficult because we’ll have to guess what was done..
– Bsalvo
If I understand, you can send the email by ajax, if I want to show you the code
– Victor Pereira
@Bsalvo Posted as I am doing in index... In the script that sends the email is basic, normal, returning false or true.
– rbz
@Victorpereira would like to see yes !
– rbz