javascript - Textarea in IE8 Newline issue -


i'm making cross-browser form, requires textarea. textarea receives data 2 ways: - sending ajax call server , returning data - user inputted data

http://jsfiddle.net/garrettwong/x3ksp/

i'm having issue on ie8 textarea text not formatted (newlines not being read), in chrome, same code, nicely formats textarea. i'm hoping use solely javascript solution if possible, i'm not sure go here.

why using text()? set value using val().

new lines \n\r.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -