<select name="select">
<option value="1" selected>q</option>
<option value="2">a</option>
<option value="3">b</option>
</select>
<script language="Javascript">
var t=document.all.select;
document.write("<br>");
for(var i=0;i<t.length;i++){
document.writeln(t.options[i].innerText," ");
document.writeln(t.options[i].value,"<br>");
}
</script>