how to get selection list value in javascript code example
Example: how to get selected list item value in javascript
var as = document.form1.ddlViewBy.value;
var e = document.getElementById("ddlViewBy");
var strUser = e.options[e.selectedIndex].value;