Following code is an example of text placed into a textarea from a database.
You don't need jQuery to Trim leading/trailing whitespace from textarea. You need to code it in 1 line
Before:
some text here... more text here...
some text here...
more text here...
After: