JQuery does not control "alert" boxes because that is your browsers end. And yes \n works. I don't see the \n in your alert at all.
alert("1" + '\n' + "2"); -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of 508! Sent: Tuesday, April 28, 2009 11:23 AM To: jQuery (English) Subject: [jQuery] line breaks in alert boxes Hi, Just started getting into jQuery yesterday. Question: How can I place line breaks in alert box text? [code] var message = ""; message += "Your Ticket# is: " + $(xml).find("rid").text() + " Please make a note of it."; alert(message); [/code] The part, " Please make a note of it." I want on a new line.The usual \n does not help in this case. Thanks for any help. Chris