-2
I created a javascript function to clean and called the button to send with onclick. was like this:
function limpar(){
$("input").val("");
$("textarea").val("");
}
<input type=text>
<textarea></textarea>
<button type="submit" onclick="limpar()">Enviar Mensagem</button>
It’s deleting, the problem is that it deletes before sending. I need it to delete after sending. Note: I created a php to send and in the form so that send and stay on the same screen, without reloading the page.
I need urgent help!
need to put the complete form and php also to better understand your problem
– user60252