Tuesday, May 17, 2011

using Trim space in Cordys

function Strtrim(str)
{
return str.replace(/^\s+|\s+$/g,"");
}

2 comments:

friends space said...

this is nt working

sumit said...

this code is working properly try it again properly .
and if it is not working for you try using


return str.split(' ').join('');

Post a Comment