i have table in which there is a comboBox.does any onw know how to get the selected value of drop down list ...
i am getting all values of a list using following statement
it returns all elements of a list. but i want to have only selected value.
Instead of getting a reference to the table object, directly get the drop down list (see example below)
var dropDown = document.getElementById("[id of drop down here]");
var selectedValue = dropDown[dropDown.selectedIndex].text;