xxxxxxxxxx
1
<script>
2
3
jQuery('#frmSubmit').on('submit', function(e) {
4
e.preventDefault();
5
jQuery('#msg').html('Please wait...');
6
jQuery('#btnSubmit').attr('disabled', true);
7
jQuery.ajax({
8
url: 'https://script.google.com/macros/s/AKfycbz7Ngeaorh7FXluqbl57f7tuzjyQZmC3earP7P03-QefwTDS0fNrRbXcReVONoMMjJ9hw/exec',
9
10
type: 'post',
11
data: jQuery('#frmSubmit').serialize(),
12
13
success: function(result) {
14
15
resend();
16
17
}
18
});
19
});
20
21
function resend() {
22
jQuery.ajax({
23
url: 'process.php',
24
type: 'post',
25
26
data: jQuery('#frmSubmit').serialize(),
27
success: function(result) {
28
29
jQuery('#frmSubmit')[0].reset();
30
31
jQuery('#msg').html(result);
32
33
jQuery('#btnSubmit').attr('disabled', false);
34
35
//window.location.href='';
36
}
37
38
});
39
40
}
41
42
</script>
43