How to get Dropdown list selected Value through Javascript?

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

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


var value = ddl.options[ddl.selectedIndex].value;

alert(value);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response