JQuery wait before the next line of code is executed
HTML
<div class="myClass">CLICK to hide</div>
CSS
.myClass {
width:100px;
height: 100px;
background: blue;
color:white;
}
JavaScript
$('.myClass').click(function() {
$(this).show().delay(3000).hide(0);
});