[Javascript] linebreak in textarea

Paul McGuire pmcguire at cguk.co.uk
Mon May 24 09:35:29 CDT 2004


I take that back, just tried it again and its now working.... I was probably
doing something stupid earlier...


----- Original Message ----- 
From: "Paul McGuire" <pmcguire at cguk.co.uk>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Monday, May 24, 2004 3:09 PM
Subject: Re: [Javascript] linebreak in textarea


> My JavaScript is populating a textbox.
>
> myform.textboxfield.value = 'mystring'
>
> I would like a way to auto insert linebreaks into the text box too.
>
> myform.textboxfield.value = 'mystring\n'
>
> just prints
>
> mystring\n
>
> into the text box as does
>
> myform.textboxfield.value = 'mystring' + '\n'
>
> How would I programatically put a sting into a textbox with linebreaks
> inserted?
>
> Paul
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list