Either hide it with CSS or with jQuery’s
hide() function. Note that the first method should only be combined with a check if JS is enabled. I usually do it like this:
PHP Code:
$('body').addClass('jsenabled');
and then in the stylesheet
Code:
.jsenabled #div2 {display: none;}
If you were to use jQuery entirely then it should look like this:
PHP Code:
$('#div2').hide();
function fadeout(){
$('#div1').fadeOut('slow', function(){
$('#div2').fadeIn('slow')
});
}