I would like to know how I get the value of a <select>
dynamic, ie when I modify the value it presents me with this value, I imagine something like below, could anyone help me?
varItens = document.getElementById('caminhos');
for( i = 0;i < varItens.length;i++)
{
varItens.options[i].selected = true;
alert( varItens.options[i].id );
}
But it does not work, because I know this would be static.