Bonjour,

Je vous explique mon problème.
Je souhaite en fonction du service selectionné, cocher automatiquement des cases à cocher.

voici comment j'ai procédé, cela fonctionne sur FF mais pas sur IE

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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title></title>
 
<script type="text/javascript">
 
function select_service ( _material ) {
 
	var _case = document.getElementById( _material  ) ;
 
	_case.setAttribute( 'checked' , 'checked' ) ;
 
	return true ;
 
}
 
</script>
</head><body>
 
<table height="100%" width="800" border="0" cellpadding="3">	
				<tr>
					<td width="50"> </td>
					<td class="champs">Service :</td>
					<td>
					<select id="Service" name="Service" size="1" onchange="showEngineer();" onkeyup="showEngineer();">
					<option>< ------- Choose a service ------- ></option>	
					<option value="Administration" onclick= " select_service ( 'Cellphone' ) ; "  <?php $select = ( $_REQUEST [ 'Service' ] == 'Administration' ) ? ' selected="selected" ' : ''  ; echo $select ; ?> >Administration</option>
					<option value="Engineering" onclick = " select_service ( 'Cellphone' ) ; " <?php $select = ( $_REQUEST [ 'Service' ] == 'Engineering' ) ? ' selected="selected" ' : ''  ; echo $select ; ?>>Engineering</option>
					</select> 
					</td>	
				</tr>	
				<tr>	
					<td width="50">&nbsp;</td>	
					<td class="champs">Cellphone : </td>
					<td><input type="checkbox" name="Cellphone" value="yes" id="Cellphone" <?php $check = ( $_REQUEST [ 'Cellphone' ] ) ? 'checked="checked"' : '' ; echo $check ; ?> /></td>	
				</tr>	
 
</table>
 
</body></html>
Merci.