I have a form where user click button to update profile. After <div>
give them notice it will fade out. It works but the problem is when user click submit button again the <div>
will not show again. My code in :
function(data){
if (data.response==1)
{
$('#stage').html("<div style=\"background-color:#75A838; padding-left:20px;\">Your profile has been updated!</div>");
}
else if (data.response==0) {
$('#stage').html("<div style=\"background-color:#FF7800; padding-left:20px;\">No changes have been made to your profile!</div>");
}
$('#stage').delay(2000).fadeOut();
html code
<div id="stage" style="color: white;"></div>
What did I miss? Help me with this please. Thank you.