It’s a very small code snippet you can use to make your user interface more user appealing.
For the all the updates or error messages, you can apply this jQuery snippet to hide the div automatically after few seconds.
jQuery(document).ready( function(){
setInterval(function(){
jQuery('.message.updated').hide('slow', function(){
jQuery('.message.updated').remove();
});
},8000);
});
Where you can replace the selector .message.updated with your own custom selector.
Also adjust the time span 8000 to your desired time in ms, after which the division tag disappears.
The hide(‘slow’) function provides a nice animation.
Happy Coding!