$('.question').fadeOut(500, function() { $('.result_text').html('<h2>Ответ</h2> "'+data+'"'); $('.answer').fadeIn(500); });