function changetext(s, e){ var cmbThemes=document.getElementById('cmbThemes'); var selectedValue = cmbThemes.options[cmbThemes.selectedIndex].value; var selectedText = cmbThemes.options[cmbThemes.selectedIndex].text; alert(selectedValue); alert(selectedText); if (selectedText() == "Glass"){ alert ("Glass"); } }
IF
selectedText()
()
selectedText
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)