Forum

Jquery settimeout f...
 

[Solved] Jquery settimeout function for hide div


(@rahul)
Active Member
Joined: 1 year ago
Posts: 6
Topic starter  

How can I hide div tag after 10 sec. of page loading. div id is 'cal' I want to hide this division after 10 sec. Please help me to solve this


   
Quote
(@niraj)
New Member
Joined: 1 year ago
Posts: 4
 

If you want to hide div after 10 sec, then you can use settimeout function for that.

As you have mentioned your div id is 'cal' then you can refer below jQuery code for the same.

setTimeout(cal, 10000);
	function cal()
	{
		$('#cal').hide();
	}

 


   
ReplyQuote
(@rahul)
Active Member
Joined: 1 year ago
Posts: 6
Topic starter  

@niraj Thanks


   
ReplyQuote
Share: