Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selected #list #item #javascript
ADD COMMENT
Topic
Name
2+4 =