[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

delay in display

i want to delay the display by 5 seconds. how do i do it?
document.getElementById(list[id]).style.display='';

Open in new window

0
vidhubala
Asked:
vidhubala
  • 2
2 Solutions
 
MMDeveloperCommented:
try

setTimeout('document.getElementById(list[id]).style.display=\'\';', 5000);
0
 
MMDeveloperCommented:
might have to remove the semi-colon after display=\'\' if it doesn't work
0
 
hieloCommented:
try:
setTimeout( function(){document.getElementById(list[id]).style.display='';} ,5000);
0
 
vidhubalaAuthor Commented:
thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now