SyntaxFix
Write A Post
Hire A Developer
Questions
Direct value should work just fine:
value
var sv = sel.value; alert(sv);
The only reason your code might fail is when there is no item selected, then the selectedIndex returns -1 and the code breaks.
selectedIndex