In this page, when you submit the form the page seems to stay as it is and it just shows a message at the top of the page saying that the message was sent.
The only part I understood was the following code:
jQuery(function() {
var returnMessage = ['I got the message! I will get back to you as soon as I can.'];
jQuery('body').showMessage({
'thisMessage': returnMessage,
'className': 'success',
'opacity': 95,
'displayNavigation': false,
'autoClose': true,
'delayTime': 4000
});
});
I know that the code above makes the message appear at the top of the page.
But I can't see how is this Javascript code connected to the form.
Can anyone explain that to me?
Thanks!