Thursday, 3 October 2013

How to remove space before and ending of text?

How to remove space before and ending of text?

For example : I have a string like that: " Text is text ".
Now i want to use Javascript to remove all space before and ending of that
string to have result :
"Text is text".
How can I that with Javascript. Thank for your help.

No comments:

Post a Comment