Bonjour

Après une recherche sur internet je ne comprend pas pourquoi le code ci-dessous ne fonctionne pas sous IE 9 alors qu'il marche très bien avec Firefox.

Si vous savez ça m'interresse.

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
 
<script type="text/javascript">
		function afficher_cacher(id){
 
			var intListeEntreprise;
			var txtIdEntreprise;
 
			for(intListeEntreprise in document.forms['frmEntreprise'].elements['Entreprise'].options){
				txtIdEntreprise = document.forms['frmEntreprise'].elements['Entreprise'].options[intListeEntreprise].value;
 
				if(txtIdEntreprise != id){
					document.getElementById(txtIdEntreprise).style.display="none";
				}
			}
			document.getElementById(id).style.display="block";
 
			return true;
		}
	</script>