Answer the question
In order to leave comments, you need to log in
What is wrong here?
I'm probably blind and don't see the problem.
$(function() {
$("body").on("click", "#result", function() {
var q = $(#formDoor[]).val();
var p = $(#Door[]).val();
var n = "&formDoor[]=" + q + "&Door[]2=" + p;
$.ajax({
type: "POST",
url: "ajax/mail.php",
data: n,
success: function(t) {
alert('Mail Sent');
}
});
});
});
Answer the question
In order to leave comments, you need to log in
#formDoor and #Door - what are these variables? If it is the id of the elements, then they must be in quotes.
You are the problem! What's with the PHP tag?
Look into the variables q and p!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question