I am new to webdesign. Been doing it for half a year now. I am trying to work with JS and I can't figure this out... I got this code:
$(window).load(function(){
$('div#contact1').click(function(e){
$('div#contact1').fadeOut('slow', function(){
$('div#contact2').fadeIn('slow');
});
});
$('div.close3').click(function(e){
$('div#contact2').fadeOut('slow', function(){
$('div#contact1').fadeIn('slow');
});
});
});
I want to fadeout the div contact2 with the div#close3 and with the escape key.