Bonjour,

je chercher à rendre un champ inactif (initial_compo2) mais cela ne fonctionne pas.

Merci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
<script type="text/javascript">
 
window.onload=
function desactive(){
document.getElementById('initial_compo2').value = document.getElementById('initial_compo1').value;
document.getElementById('final_compo2').value = document.getElementById('final_compo1').value;
document.getElementById('final_compo2').readonly= true;
document.getElementById('initial_compo2').readonly= true
form1.initial_compo2.readonly = true;
 
}
</script>