Results 1 to 3 of 3

Thread: textbox.value <br /> ??

  1. #1
    Join Date
    Jan 2007
    Location
    Charlotte, NC
    Posts
    82
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question textbox.value <br /> ??

    I'm building a web app that when a user clicks on a button, that button's value is passed to a textbox so that user can quickly see what they've clicked. This works great. But I only want one item per line. I was thinking of somehow putting a <br /> after each item but I cannot figure out how to do this with textboxID.value.

    So how do you add an html break (<br />) in textboxID.value? Or is there maybe another way to do this? I'm using asp Textboxes.

    Thanks for any and all help!

  2. #2
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    I assume it's a multiline textbox (textarea) so you must use the newline character "\n" to insert line breaks.

  3. #3
    Join Date
    Jan 2007
    Location
    Charlotte, NC
    Posts
    82
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    hahaha, thanks! I can't believe I didn't think about that... it was a "DOH!" moment. Thanks again!

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
  •