J'aimerai changer la valeur selectionné de mon select.
Je fais ceci mais ca ne marche pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 var selectBoxProj = document.choixtacheemp.choixprojet; for( var i = 0; i < selectBoxProj.options.length; i++ ) { selectBoxProj.options[ i ].selected = false; if( selectBoxPro.options[ i ].value == valeur) ) selectBoxProj.options[ i ].selected = true; }
Partager