![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/10/2008, 18:56
|
| | Fecha de Ingreso: octubre-2008
Mensajes: 21
Antigüedad: 16 años, 3 meses Puntos: 2 | |
Respuesta: Traspasar nombre de un input al javascript Si tienes:
<input name="textfield" type="text" id="textfield" value="algo" onchange="limpiar(this);"/>
Facilmente puedes hacer:
function limpiar (objeto)
{
objeto.value="";
}
Y listo. |