ajax phone

This commit is contained in:
fred 2021-08-11 05:07:26 +02:00
parent 30e5978a47
commit 8333454ed9
1 changed files with 10 additions and 9 deletions

View File

@ -24,13 +24,14 @@ jQuery(document).ready(function () {
$("#formlink").submit(function(e) {
e.preventDefault(); // avoid to execute the actual submit of the form.
console.log("button LINK clicked");
$("#linkresultat").html("<p><h3>Astroport vous remercie pour votre nourriture médiatique</h3></p>");
$("#linkresultat").html("<p><h3>Merci! nous envoyons votre message à la GUILDE</h3></p>");
// declare these vars
var link = jQuery("#link");
var phone = jQuery("#phone");
var data = '';
// ajax call to ajax.php
jQuery.getJSON("ajax.php", {
link: link.val()
link: link.val(), phone: phone.val()
}, function (data) {
$("#linkresultat").html("<p><h3>Astroport vous remercie pour votre nourriture médiatique</h3></p>");
});