Bonjour,
j'ai un code marche sauf que je voudrais qu'aucun bouton radio ne soit cochet a l'avance.
voici mon code :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<script language="Javascript">
// ==================
// Activations - D?ctivations
// ==================
function GereControle(Controleur, Controle) {
document.getElementById(Controle).style.display=(Controleur=='radio_10')?'block':'none';
}
</script>
</head>
<body>
<table width="568" border="0">
<tr>
<td width="65">Assure</td>
<td width="70"><input type="radio" id="radio_10" name="radios_0" onClick="GereControle('radio_10', 'liste_10');" CHECKED> <label for="radio_10">Oui</label></td>
<td width="419"><input type="radio" id="radio_20" name="radios_0" onClick="GereControle('radio_20', 'liste_10');"> <label for="radio_20">Non</label></td>
</tr>
</table>
<div style="position: absolute; top: 100px; left: 14px; height: 347px;">
<div id="liste_10" style="display:none">
<table width="1003" height="50" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td width="210" height="35"><span class="Style13">Nom assurance</span></td>
<td width="639" colspan="3"><input name="nom_assurance" type="text" style='background-color: #99CC00; color: #FFFFFF; font-weight: bold; border-width: 1px; font-size:12pt'/></td>
</tr>
</table>
</div></div>
</body>
</html>
Afficher la suite
18 avril 2015 à 10:31