how to hide a div after 5 seconds in jquery code example Example: jquery show and hide after 5 seconds $("#myElem").show().delay(5000).fadeOut();