Why after the AJAX success pop-up window is not called again?

On the website there is a button "send a request", clicking on which a popup window appears and there you enter the name, phone number and a submit button. Fields -> the "Send" button is pressed -> request sent-> popup closes, but after that only the button "Leave the application" does not respond to anything without having to refresh the page a pop-up window does not appear. What could be the problem?
a piece of JS
$.ajax({
 type: method,
 url: actionurl,
 async: false,
 data: formData,
 success: function(result) {
$('input[type=text]').val(");
$('input[type=email]').val(");
$("#call").hide();//<-----
 $('.modal-overlay').fadeOut(); //<-----
},
 error: function(xhr, str){
 alert('error Occurred:' + xhr.responseCode);
}
});
 return false;

the problem started when I added
$("#call").hide();//<-----
 $('.modal-overlay').fadeOut(); //<-----
March 12th 20 at 08:06
1 answer
March 12th 20 at 08:08
Solution
Need to call a method of closing modelki (see the documentation for module), and not to hide it in jquery css methods
Something like $('.modal').modal('close');
Thank you! Works! - shanie.OReilly commented on March 12th 20 at 08:11

Find more questions by tags JavaScriptAJAX