hide one div and show another javascript after a few seconds code example Example: html timed hide setTimeout(function() { $('#hide').show() }, 4000);