How to get value from dropdown (select) control?

 Posted by Raja on 6/29/2008 | Category: JavaScript Interview questions | Views: 9539
Answer:

Write following code

alert(document.getElementById('dropdown1').value);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: dhananjay01singh-11861 on: 9/12/2011 | Points: 10
var ddl = document.getElementById('dropdownlist');

var ddlvalue = ddl.options[ddl.selecteIndex].value;

Login to post response