ajax phone
This commit is contained in:
parent
30e5978a47
commit
8333454ed9
|
@ -24,13 +24,14 @@ jQuery(document).ready(function () {
|
||||||
$("#formlink").submit(function(e) {
|
$("#formlink").submit(function(e) {
|
||||||
e.preventDefault(); // avoid to execute the actual submit of the form.
|
e.preventDefault(); // avoid to execute the actual submit of the form.
|
||||||
console.log("button LINK clicked");
|
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
|
// declare these vars
|
||||||
var link = jQuery("#link");
|
var link = jQuery("#link");
|
||||||
|
var phone = jQuery("#phone");
|
||||||
var data = '';
|
var data = '';
|
||||||
// ajax call to ajax.php
|
// ajax call to ajax.php
|
||||||
jQuery.getJSON("ajax.php", {
|
jQuery.getJSON("ajax.php", {
|
||||||
link: link.val()
|
link: link.val(), phone: phone.val()
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
$("#linkresultat").html("<p><h3>Astroport vous remercie pour votre nourriture médiatique</h3></p>");
|
$("#linkresultat").html("<p><h3>Astroport vous remercie pour votre nourriture médiatique</h3></p>");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue