javascript - Hide a message after 5000 milliseconds with jquery -


i want if message(div class="message") there (mean display: block;) after 5000 milliseconds hide(display: none;). how it?

example: http://jsfiddle.net/slrft/1/

<div class="message">this message</div>  settimeout(function(){ $('.message').fadeout('slow'); }, 5000); 

$('.message').delay(5000).fadeout('slow'); 

http://jsfiddle.net/xavi3r/slrft/3/


Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -