Answers for "how-to-hide-django-message-after-it-is-displayed-for-few-seconds"

0

how-to-hide-django-message-after-it-is-displayed-for-few-seconds

// suppose the `id` attribute of element is `message_container`.
var message_ele = document.getElementById("message_container");

setTimeout(function(){ 
   message_ele.style.display = "none"; 
}, 3000);
// Timeout is 3 sec, you can change it
Posted by: Guest on October-05-2021

Code answers related to "how-to-hide-django-message-after-it-is-displayed-for-few-seconds"

Browse Popular Code Answers by Language