SyntaxFix
Write A Post
Hire A Developer
Questions
You can try :
setTimeout(function() { $('#successMessage').fadeOut('fast'); }, 30000); // <-- time in milliseconds
If you used this then your div will be hide after 30 sec.I also tried this one and it worked for me.