Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2013, 15:30
Avatar de chrisdawill
chrisdawill
 
Fecha de Ingreso: agosto-2013
Mensajes: 25
Antigüedad: 10 años, 8 meses
Puntos: 0
Respuesta: Mostrar y ocultar parte de un formulario html?

jajaja, llamenme impaciente.. pero ya encontre la solucion, se la dejo a alguien mas que la necesite.

<html>
<head>
<title>CB Hide/Show</title>
<script type="text/javascript">
<!--
function showMe (it, box) {
var vis = (box.checked) ? "block" : "none";
document.getElementById(it).style.display = vis;
}
//-->
</script>
</head>
<body>
<h3 align="center"> This JavaScript shows how to hide divisions </h3>

<div id="div1" style="display:none">
<table border=1 id="t1">
<tr>
<td>i am here!</td>
</tr>
</table>
</div>

<form>
<input type="checkbox" name="c1" onclick="showMe('div1', this)">Show Hide Checkbox
</form>
</body>
</html>