hi guys,
the script below swaps the divs based on the ID, however when I have up to 5 divs, how do I implement it ?

Or do I repeat the triggerButton event over and over again ?

e.g. $('#triggerButton').click(function (e)
then $('#triggerButton1').click(function (e)
$('#triggerButton2').click(function (e)

etc ???


Here is my code
Code:
$(document).ready(function () {
    $('#triggerButton').click(function (e) {
        e.preventDefault();
        $('#div1').fadeOut('fast', function () {
            $('#div2').fadeIn('fast');
        });
    });

});
many thanks
Ehi