HTML fade effect #2
by jch02140
HTML
<div id="myDivID"> sup yall</div>
<input id="button" type="button" value="touch me"/>
CSS
#myDivID{
width:100px;
height:200px;
background:red;
}
JavaScript
$('#button').click(function(){
$('#myDivID').fadeOut('slow', function() {
$('#myDivID').html("all this text");
$('#myDivID').fadeIn('slow');
});
})