how to set value on DOM for 3 sec in javascript code example Example: settimeout jquery setTimeout(function(){ alert("Hello"); }, 3000);