I solved this, BUT: another weird problem:
var message is passed to the function, so I have: function successHome(message) { setTimeout('$("#mailSuccess").html(message) 1000); but it says 'message' is not defined only this works: function successHome(message) { setTimeout('$("#mailSuccess").html("Your email has been sent.<p>Thank you.</p>");', 1000); this is so bizarre.... if I do: function successHome(message) { alert(message); // no probl here // but here: setTimeout('$("#mailSuccess").html(message);', 1000); // it says 'message is not defined' ??????? thank you....