![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/03/2008, 10:05
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Re: dudas de dom Hola blackster
Prueba este código:
Código:
<html>
<head>
<script type="text/javascript">
function poner(chk) {
if (!chk)
document.frm.removeChild(document.frm.algo);
}
</script>
</head>
<body>
<form name="frm">
<input type="checkbox" onclick="poner(this.checked)" />
<input type="text" name="algo" />
</form>
</body>
</html>
Saludos, |