find list option with certain value 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;