Tuesday, April 26, 2005

Java Script to trim the text

function trim(object){
object.value=object.value.replace(/^\s+/,'').replace(/\s+$/,'');
}

0 Comments:

Post a Comment

<< Home