![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/02/2011, 15:32
|
| | Fecha de Ingreso: febrero-2011 Ubicación: Evolandia
Mensajes: 103
Antigüedad: 14 años Puntos: 10 | |
Respuesta: problema al ocultar tabla Que tal éste ejemplo:
Código HTML:
Ver original function ocultar(id){ var tabla = document.getElementById(id); for(var i=1; i<tabla.rows.length; i++) { tabla.rows[i].style.display=tabla.rows[i].style.display==""?"none":""; } } td,th {border: 1px solid red; } table {border-collapse: collapse;} <tr onclick="ocultar('tabla1')">
Saludos! |