Bonjour,

je veux indiquez un pris selon le choix par bouton radio mais cela ne marche pas

voici mon code

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
44
45
46
47
48
49
50
51
52
53
54
55
 
...
function calcul()
{
 
if (document.forms['formulaire'].elements['RadioQt[1]'].value)=1
{
var prixtotal=132;
document.forms['formulaire'].elements['EditTotal'].value=prixtotal;
}
if (document.forms['formulaire'].elements['RadioQt'].value)=2
{
var prixtotal=174;
document.forms['formulaire'].elements['EditTotal'].value=prixtotal;
}
if (document.forms['formulaire'].elements['RadioQt'].value)=3
{
var prixtotal=220;
document.forms['formulaire'].elements['EditTotal'].value=prixtotal;
}
if (document.forms['formulaire'].elements['RadioQt'].value)=4
{
var prixtotal=360;
document.forms['formulaire'].elements['EditTotal'].value=prixtotal;
}
...
<form action="impression-support-magnetique.php" method="post" name="formulaire">
<table width="680" border="0">
<tr>
  <td bgcolor="#FF0000" class="style-sous-sous-titres-produits">ENTREZ VOS MESURES</td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	<table width="520" border="0">
  <tr>
    <td width="220" class="style-description-produits">Nombre de copies</td>
    <td width="75">&nbsp;</td>
    <td width="75"><input name="RadioQt" type="radio" value="1" />1000<br /><input name="RadioQt" type="radio" value="2" />2500<br /><input name="RadioQt" type="radio" value="3" />5000<br /><input name="RadioQt" type="radio" value="4" />10000</td>
	<td width="150"><span class="Style3">Champ obligatoire</span></td>
  </tr>
 
 
  <tr>
  <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4"><span class="style-description-produits">Cliquez sur le bouton "calculer" pour connaître le prix de votre produit</span>&nbsp;
      <input name="BtnCalculer" type="button" value="Calculer" style="width:80px; height:20px;" onclick="calcul();"/></td>
 
  </tr>
</table>
...
merci pour votre aide