Re: Trim Function




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

.