Results 1 to 2 of 2

Thread: change "enter" in <br>

  1. #1
    Join Date
    Feb 2009
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question change "enter" in <br>

    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

  2. #2
    Join Date
    Feb 2009
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    i've found it: replace(string.fromCharCode(13),"<br />")

    * topic can be closed *

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •