$("#report_comment_success_7821").removeClass("flash_successful") $("#report_comment_success_7821").addClass("flash_unsuccessful") $("#report_comment_success_7821").html("There has been a problem with your request. Please, try again.") $("#report_comment_success_7821").fadeIn(500).delay(2500).fadeOut(500);