Friday, September 01, 2006

TRIM IN JAVASCRIPT


str - the string
str.replace(/^\s*\s*$/g,""); - the trimmed string

No comments: