get selection js code example Example: get selection value javascript var e = document.getElementById("ddlViewBy"); var strUser = e.value;