How to get Dropdown list selected Text through Javascript?

 Posted by vishalneeraj-24503 on 12/25/2013 | Category: JavaScript Interview questions | Views: 936 | Points: 40
Answer:

var ddl = document.getElementById('<%=dropdownlist1.ClientID%>');

var text = ddl.options[ddl.selectedIndex].text;
alert(text);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response