Toggle Div Slider

by bizamajig

HTML

<div id="slideshow">
    Hello World
</div>
<button>toggle the other greeting</button>
<div id="second">
    Hello again
</div>

CSS

.js #slideshow{display: none;}
.js #second {display: none;}

JavaScript

$('html').addClass('js');
    $(document).ready(function() {
    // Stuff to do as soon as the DOM is ready
        $('#slideshow').show();

        $('button').bind('click', function() {
           $('#second').fadeToggle();
        });
    });