Tell me how to make a window appear after a successful ajax
request, and then disappear after a while. Thank you in advance!
1 answer
You can see here
$.ajax({ url: '/echo/html/', type: 'POST', data: 1, success: function(){ $('<div id="report">GOOD!</div>').appendTo('body') .delay(3000).fadeOut(500); }, dataType: 'html' });
In addition, you can use the method .ajaxSuccess ()
|