نسخ رمز رمز على النحو التالي: var sel = document.getElementByid (id) ؛ فهرس = sel.SelectIndex ؛ var textsel = sel.options [index] .tex