var e = document.getElementById("ddlViewBy"); var value = e.options[e.selectedIndex].value; var text = e.options[e.selectedIndex].text;
var t = document.getElementById("ddlViewBy");<br /> var selectedText = t.options[t.selectedIndex].text;
$("#ddlViewBy option").is("selected").text();
$("#ddlViewBy").children("option").is("selected").text();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)