|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
/*
Purpose
Used to trim leading and trailing whitespace from a string.
Parameters
Str (String) = The string we want to trim.
Return (String)
Returns the specified string (Str) trimmed of whitespace on each side.
Version History
1.0 11/18/2008 Tested by Russ Tanner
*/
function Str_Trim(Str) {
return Str.replace(/^\s+|\s+$/g, '') ;
}
|
|
|
|
|