jQuery(document).ready(function () { $("#formphone").submit(function(e) { e.preventDefault(); // avoid to execute the actual submit of the form. console.log("button PHONE clicked"); $("#phoneresultat").html("

Vous allez recevoir un SMS...

" + "

Suivez ses instructions pour finaliser votre inscription.

"); // declare these vars var phone = jQuery("#phone"); var data = ''; // ajax call to ajax.php jQuery.getJSON("zen_loveland_entrance.php", { phone: phone.val() }, function (data) { $("#phoneresultat").html("

Votre inscription en prise en compte...

"); }); }); $("#formemail").submit(function(e) { e.preventDefault(); // avoid to execute the actual submit of the form. console.log("button EMAIL clicked"); $("#emailresultat").html("

MERCI, vous allez recevoir plus de détails dans votre boite Email

"); // declare these vars var email = jQuery("#email"); var data = ''; // ajax call to ajax.php jQuery.getJSON("ajax.php", { email: email.val() }, function (data) { $("#emailresultat").html("

MERCI, Nous vous envoyons le détail de l'offre Made In Zion / Bank par Email

"); }); }); });