There is a problem.
Click on the link a window appears with a form a user fills it out, sends - performs an Ajax request to a file send.php.
If the user filled out everything correctly and the request is accepted then issue a greeting.
Here is the code:
var form_data = $(this).serialize();
But for some reason when the query returns TRUE. The window "congratulations" appears but immediately goes off, even if the data in the database went. And the form is also closed but in principle it should be.
The question is, how do I write code so that modal window with a greeting has not been closed?