Copy code code as follows: var sel = document.GetelementByid (ID); // ID of SELECT element var index = sel.selectIndex; // Get the index of the selected Option var textsel = sel.options [index] .text; // Get the content of the corresponding Option