Bonjour
j'ai besoin de votre aide sur ce code là qui me parait correcte mais il marche pas
ce code normalement doit m'afficher la liste déroulante de la question 2 quand je choisi la réponse "oui" dans la première question.

merci de votre d'aide.

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
<script>   
   function ShowUrlField()
   {
   if(document.formulaire.ASCr.value == "Oui" )
   {
 
     document.formulaire.ASC_alt.style.visibility = "visible";
 }
else
  document.formulaire.ASC_alt.style.visibility = "hidden";
 }
</script>
<table border=2 bordercolor=#FE0008>
<tr>
<td><b>Question1?</b></td>
<td>
 
<form name="formulaire">
 
<select name="ASCr" onChange="ShowUrlField()">
<option value ="" <?php if ($change['ASCr']=="") echo "selected"; ?>>Inconnu</option>
<option value ="Oui" <?php if ($change['ASCr']=="Oui") echo "selected"; ?>>Oui</option>
<option value ="Non" <?php if ($change['ASCr']=="Non") echo "selected"; ?>>Non</option>
</select>
 
</td>
</tr>
<tr>
<td><b>Question 2</b></td>
<td>
<select name="ASC_alt" style="visibility:hidden" >
<option value ="" <?php if ($change['ASC_alt']=="") echo "selected"; ?>>Inconnu</option>
<option value ="Oui" <?php if ($change['ASC_alt']=="Oui") echo "selected"; ?>>Oui</option>
<option value ="Non" <?php if ($change['ASC_alt']=="Non") echo "selected"; ?>>Non</option>
</select>
</td>
</tr>
</form>	
</table>