I am tying to make a simple effect using keyup() in jQuery. I just want that when user types into the textarea then the text which user types will
keyup()
textarea
Add a white-space: pre-wrap rule to the div's CSS.
white-space: pre-wrap
.mas { white-space: pre-wrap; }
Demo: http://jsfiddle.net/Pqygp/13/