Copier le code du code comme suit: var sel = document.getElementById (id); var index = sel.selectIndex; var textsel = sel.options [index] .Text;