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

vidhubalaAsked:
Who is Participating?
 
MMDeveloperConnect With a Mentor Commented:
might have to remove the semi-colon after display=\'\' if it doesn't work
0
 
MMDeveloperCommented:
try

setTimeout('document.getElementById(list[id]).style.display=\'\';', 5000);
0
 
hieloConnect With a Mentor Commented:
try:
setTimeout( function(){document.getElementById(list[id]).style.display='';} ,5000);
0
 
vidhubalaAuthor Commented:
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.