$(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');
}
});
});
});