Re: Trim Function
- From: "Julian Turner" <julian@xxxxxxxxxxxxxx>
- Date: 29 Nov 2005 04:33:42 -0800
aroraami...@xxxxxxxxx wrote:
> Does java script provides inbuilt trimming function,
No
>if not then what
> is the solution.
One solution is:-
function Trim(s)
{
return s.replace(/^\s+|\s+$/g,"");
}
If you search this newsgroup you will find many others.
Regards
Julian Turner
.
- References:
- Trim Function
- From: aroraamit81
- Trim Function
- Prev by Date: Re: XmlHttpRequest not loading latest version of xml
- Next by Date: Re: Auoresize pupup browser windows to content
- Previous by thread: Trim Function
- Next by thread: Re: Trim Function
- Index(es):