<select id="selTest">
<option value="1">Test</option>
<option value="2"> Test1</option>
<option value="3"> Test2</option>
</select>
JavaScript Code:
function traverseSelect()
{
var sel = document.getElementById('selTest');
for (i = 0; i < sel.options.length; i++)
{
alert(sel.options[i].text);
}
//get the text of selected option
alert(sel.options[sel.options[sel.selectedIndex].text);
}