1$(document).ready(function() {
2 $("your form selector here").submit(function() {
3
4
5 // do the extra stuff here
6 $.ajax({
7 type: "POST",
8 url: "mail.php",
9 data: $(this).serialize(),
10 success: function() {
11 $('.simple-sucess').fadeIn(100).show();
12 $('.contact_form').fadeOut(100).hide();
13 $('.simple_error').fadeOut(100).hide();
14
15 }
16 })
17
18 })
19})
20