PDA

View Full Version : change "enter" in <br>



NDK
09-17-2009, 09:37 AM
hi,

i have an input-field where the user can write some text. How can i change the enters in his text in <br>?

can i use replace.("*something*","<br/>") or what is the best solution?

tnx

NDK
09-17-2009, 12:09 PM
i've found it: replace(string.fromCharCode(13),"<br />")

* topic can be closed *