Fading with jQuery

The code is more or less the same as the previous tutorial with .show(), .hide(), and .toggle(). However, these are two different effects or events: .fadeIn() and .fadeOut(). Take a look at the below code:
In Your HTMLÂ BODY Element
<br /><br /><%%KEEPWHITESPACE%%> <h5>.fadeOut()</h5><br /><%%KEEPWHITESPACE%%> <p><a href="#" id="disappear">Fade Out</a></p><br /><br /><%%KEEPWHITESPACE%%> <h5>.fadeIn()</h5><br /><%%KEEPWHITESPACE%%> <p><a href="#" id="appear">Fade In</a></p><br /><br /><div><p>This is an example piece of content that I will be showing, hiding, or toggling.</p></div><br /><br />
In Your External js File (within the ready function)
<br />// Fading Effects<br /><%%KEEPWHITESPACE%%> $('#appear').click( function() {<br /><%%KEEPWHITESPACE%%> $('div.MyDiv').fadeIn('slow');<br /><%%KEEPWHITESPACE%%> return false;<br /><%%KEEPWHITESPACE%%> });<br /><br /><%%KEEPWHITESPACE%%> $('#disappear').click( function() {<br /><%%KEEPWHITESPACE%%> $('div.MyDiv').fadeOut('slow');<br /><%%KEEPWHITESPACE%%> return false;<br /><%%KEEPWHITESPACE%%> });<br />