Bonjour,
pourquoi ce code ne marche-t-il pas ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <select id="selectId"> <option>Champ1</option> <option>Champ2</option> </select> <script language="javascript"> var selectElmt = document.getElementById('selectId'); msg=selectElmt.options[selectElmt.selectedIndex].value; document.write(msg); </script>
Partager