![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/09/2006, 08:10
|
![Avatar de diegopedro](http://static.forosdelweb.com/customavatars/avatar146045_1.gif) | | | Fecha de Ingreso: agosto-2006 Ubicación: Santiago
Mensajes: 120
Antigüedad: 18 años, 6 meses Puntos: 0 | |
Yo ocupo esta function para sacar los espacios
function LTrim( value ) {
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
function RTrim( value ) {
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}
function trim( value ) {
return LTrim(RTrim(value));
} |