Bonjour.
J'ai une funtion attachée à des checkbox qui ne marche pas.
Et pourtant j'ai pris ça sur un tuto!!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <Script Language="Javascript"> function affectation(){ if (document.choix.abont[0].checked) { document.choix.revue.value="oui"; } else { document.choix.revue.value="non"; } if (document.choix.abont[1].checked) { document.choix.revue1.value="oui"; } else { document.choix.revue1.value="non"; } } </script> <form name="choix"> <table border="0" style="margin-top:5" <colgroup width=300/> <colgroup width=235/> <tr> <td colspan="3" align="center" style="height:30"><font face="verdana"; size="2">Revue Filières & Réseaux 2 Santé (1 an, 6 numéros)</td> </tr> <tr> <td><input type="checkbox" name="abont" value="1" onclick="affectation()"><font face="verdana" size="1">Revue <font color="#808080"><b>FILIÈRES & RÉSEAUX 2 SANTÉ</b></font></td> </tr> <tr> <td valign="top"><input type="checkbox" name="abont" value="2" onclick="affectation()"><font face="verdana" size="1">Revue <font color="#808080"><b>FILIÈRES & RÉSEAUX 2 SANTÉ</b></font></td> </tr> <tr> <td class=tdmin><input type="checkbox" name="abont" value="3" onclick="affectation()" >NewsLetter <font size="1">(par courrier et Internet)</font></td> </tr> <tr> <td class=tdmin><input type="checkbox" name="abont" value="4" onclick="affectation()">NewsLetter <font size="1">(Internet uniquement)</font><br> </tr> <tr> <td class=tdmin><input type="checkbox" name="abont" value="5" onclick="affectation()">Accès aux réseaux</font></td> </tr> <td><input type="text" name="revue" value="" style="width:50px"> <input type="text" name="revue1" value="" style="width:50px"> <input type="text" name="lci" value="" style="width:50px"> <input type="hidden" name="li" value="" style="width:50px"> <input type="hidden" name="reseaux" value="" style="width:50px"></td> </tr> </table> </form>
J'ai une erreur sur la page
Merci d'avance
Partager