
14/04/2008, 08:47
|
 | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Re: textField enabled con checkbox Hola puntapari
A ver si te sirve esto:
Código:
<tr>
<td><input type="checkbox" onclick="habilitar(this)" /></td>
<td><input type="text" disabled="disabled" /></td>
<tr>
Código:
function habilitar(obj) {
fila = obj.parentNode.parentNode;
fila.getElementsByTagName('input')[1].disabled = !obj.checked;
}
Saludos, |