I have a message box div in my page which will appear after succesfully submitting a form. I want to hide it after some time as it appears.
I have tried this code in the chrome developer tool and it works.
$(document).ready(function(){
if ($('#notification').is(":visible")) {
$('#notification').delay(1000).fadeOut();
}
});
But when I inserted this code to my page, its not working.
Kindly give me a solution for this.
Thank you & Regards,