1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$("#addGoupNameForm").submit(function(e) {
e.preventDefault();
$("#test").html("Chargement...");
$.ajax({
data: {'addGoupName': $("input[name=addGoupName]").val()},
// dataType : "json",
type: 'POST',
url: 'ajax.php',
success: function (response) {
// console.log(response);
$("#test").html("Résultat:<br>");
$("#test").append(response);
}
});
});
$("#addGroupeChannelForm").submit(function(e) {
e.preventDefault();
$("#test").html("Chargement... " + $("input[name=addGroupeChannel]").val());
}); |
Partager