Ciao a tutti come posso recuperare un valore da una select e mostrarlo in una finestra alert con un evento OnChange. Ho provato così ma sono sicuramante fuori strada:
function mostra() {
var valore = document.productsearch.categoria.options[].text
for (var i=0; i< productsearch.categorie.lenght; i++){
if(categoria[i] == valore) {
break
}
}
alert(valore)
}
Mi potete correggere per favore?