View Full Version : textbox.value <br /> ??

06-20-2007, 02:38 PM
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!

06-20-2007, 03:04 PM
I assume it's a multiline textbox (textarea) so you must use the newline character "\n" to insert line breaks.

06-20-2007, 03:15 PM
hahaha, thanks! I can't believe I didn't think about that... it was a "DOH!" moment. Thanks again!