Indirizzo: C.so G. Matteotti 242, Porto Recanati 62017 (MC), Italy
gt;>
function checkRecaptcha() {
var response = $("#g-recaptcha-response").val();//grecaptcha.getResponse();
$.ajax({
type: "POST",
url: '/contact.aspx',
data: {"g-recaptcha-response" : response, "name":$("#name").val(),"reparto":$("#reparto").val(),"email":$("#email").val(),"comment":$("#comment").val()},
contentType: 'application/x-www-form-urlencoded',
success: function(data) {
$("#name").val('');
$("#reparto").val('');
$("#email").val('');
$("#comment").val('');
if (data=="OK")
alert("Messaggio inviato!");
else
alert("Errore durante l'invio del messaggio");
}
});
}