Sunday, October 2, 2011

$.trim(String)

$.trim(String str) returns String
Remove the whitespace from the beginning and end of a string.

Example:

$.trim(" hello, how are you? ");

Result:
"hello, how are you?"

No comments:

Post a Comment