Problème de display sur un TR
Salut, j'ai un problème sur un script PHP ...
Je vais vous donner les code et vous observerai ... (en faite il suffit de cliquez plusieur fois sur les bouton radio et vous comprendrez ...)
Code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<html>
<head>
<script language="javascript" type="text/javascript">
function changement()
{
if (document.getElementById('allo').checked) {
document.getElementById('al').style.display = "none"; }
if (document.getElementById('allo2').checked) {
document.getElementById('al').style.display = "block"; }
if (document.getElementById('allo3').checked) {
document.getElementById('al').style.display = "block"; }
}
</script>
</head>
<body>
<table>
<tr>
<td style="width: 170px;">Choisissez le mode de paiement qui vous convient </td>
<td>
<label>
<input name="radiobutton" type="radio" value="radiobutton" id="allo2" onclick="javascript:changement();" checked="checked" />
</label>
Paypal (**€) <br />
<label>
<input name="radiobutton" type="radio" value="radiobutton" id="allo" onclick="javascript:changement();" />
</label>
Allopass (** allopass palier b) <br />
<label>
<input type="radio" name="radiobutton" value="radiobutton" id="allo3" onclick="javascript:changement();" />
</label>
Carte bancaire
(**€) </td>
</tr>
<tr id="al">
<td style="width: 170px;">Engagement</td>
<td>
<label>
<select name="select">
<option value="mois" selected="selected">1 mois</option>
<option value="an">1 an (2 mois offerts)</option>
</select>
</label></td>
</tr>
</table>
</body>
<html> |
Merci d'avance