My problem is: After the user keyin the data in a multiline textbox, I want to replace all the change line escape characters to some html tag in the client side javascript. I try:
strName.replace("\n", "
");
strName.replace("\r", "
");
strName.replace("\f", "
");
All the above methods all fail, what should I do? Thanks for help!
yanghc60
Member
50 Points
10 Posts
How to specify a change line escape charecter in a textbox using javascript?
Oct 20, 2003 10:29 AM|LINK
strName.replace("\n", "