First of all, thank you for your kind help.
I have tried almost everything I found on stackoverflow but I cannot get this to work.
I created a form to send a te
Use the the preventDefault() function so that the form doesn't do the redirection on submit. After that, use append() instead of appendTo()
$('#contact-form').submit(function(e) { e.preventDefault();
$('#contact-form').submit(function(e) {
e.preventDefault();