ajax
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user