// Loop over a select
var x = document.getElementById("mySelect");
var txt = "";
for (var i = 0; i < x.length; i++)
{
txt = txt + x.options[i].text + "<br>";
}
// Loop over a select
var x = document.getElementById("mySelect");
var txt = "";
for (var i = 0; i < x.length; i++)
{
txt = txt + x.options[i].text + "<br>";
}