Not really sure where jQuery would come in the equation, but "\n" is a
linebreak in JavaScript and works inside an alert string

so

var message = "Your Ticket# is: " +
    $(xml).find("rid").text() +
    "\nPlease make a note of it.";


On Apr 28, 12:23 pm, "508!" <chriskgre...@gmail.com> wrote:
> 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

Reply via email to