Question: how to set selected value of dropdown in asp.net using javascript?
Answer: function GetMaster1Details()
{
var value = document. getElementById("<%=ddlMaster1. ClientID%>");
var getvalue = value. options[value. selectedIndex]. value;
var gettext = value. options[value. selectedIndex]. text;
alert("value:-" +" "+ getvalue + " "+ "Text:-" +" "+ gettext);
}