Jump to content


Gutto

Member Since 19/10/2005
Offline Last Active 18/03/2008, 18:27
-----

Posts I've Made

In Topic: Clicar Em Radio Button E Ativar Checkbox !

02/05/2007, 17:07

<html>

<head>

<script> function exibe() {



	var Ver = document.form.Ativa.value;

	

	if (Ver = 'S') {

	

	document.getElementById("grupo").style.display = "block";



	}

	

		}

		

		function oculta() {

	

	if (Ver = 'N') {

	

	document.getElementById("grupo").style.display = "none";

	

	}

	

}

</script>

</head>

<body>

<form name="form" method="POST">

	<div align="center">

		<table border="0" cellpadding="0" cellspacing="0" width="400" id="table1">

			<tr>

				<td><input type="radio" value="S" name="Ativa" onclick="exibe();">Sim<input type="radio" value="N" checked name="Ativa" onclick="oculta();">Não</td>

			</tr>

			<tr>

				<td><div id="grupo" style="display: none;"><input type="checkbox" name="C1" value="ON">1<input type="checkbox" name="C2" value="ON">2<input type="checkbox" name="C3" value="ON">3</div></td>

			</tr>

			<tr>

				<td> </td>

			</tr>

		</table>

	</div>

</form>

</body>

</html>

IPB Skin By Virteq