I have a formulário de e-mail simples
, and when I click "Send" the "status" appears next to the button, for example:
Enquanto envia
, "Sending ..." appears (this is already working)
The problema
is as follows:
My form is in the "index", and action do form
is in another "email.php" file.
How do I JQuery
receive retorno
of "email.php" and know if the email was sent or not, in order to update status
No index:
<script type="text/javascript">
$(document).ready(function(){
$('#email').submit(function() {
$('#emlst').text('Enviando...');
//if do retorno
});
});
</script>