This commit is contained in:
2019-06-07 19:04:55 +02:00
parent 6872b491c2
commit b3800e5e04
7 changed files with 67 additions and 34 deletions

View File

@@ -168,11 +168,38 @@ function burger() {
});
}
function ajaxformulaire() {
$(".ok").on('click', function () {
$(this).parent('#send-valide').remove();
location.reload();
});
var form = $('#ajax-test-form');
form.submit(function(e) {
// prevent form submission
e.preventDefault();
// submit the form via Ajax
$.ajax({
url: form.attr('action'),
type: form.attr('method'),
dataType: 'html',
data: form.serialize(),
success: function(result) {
// Inject the result in the HTML
$('#form-result').html(result);
}
});
});
}
jQuery(document).ready(function(){
// ajaxformulaire();
addclass();
mapsalles();
clickbutton();
clicksenddevis();
links();
slide();
filteritem();