Topic starter
09/11/2022 7:08 am
Hi,
On html page I have hidden div I want to show that div after 20 sec of page loading. Please help me to show div after 20 sec.
div id is 'hiddendiv'
Thanks in advance.
12/11/2022 6:28 am
You can use settimeout function of Javascript to show hidden div.
Basically I assume that you have div which having style of display none. Like below code
<div id="hiddendiv" style="display: none;"> hidden div data </div>
Now I am writing code of showing hidden div after 20 sec.
setTimeout(showHiddenDiv, 20000); function showHiddenDiv() { $('#hiddendiv').show(); }
In above code, I have wrote settimeout function of javascript, this function will execute ShowHiddenDiv function which will show your hidden div.