 $(function () {     $('#submit').click(function () {         $('#myfrom').fadeOut("slow", function () {             var dot = $("<div id='foo'>Goodmorning Mr. Patti<br/><br/>Thank you.</div>").hide();             $(this).replaceWith(dot);             $('#foo').fadeIn("slow");         });     });  }); 