Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"
>
<
html>
<
head>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<
script type="text/javascript"
function 
clear_selectedindex(selEl){
    var     
opts    selEl.options
            for (var 
i=0;i<opts.length;i++) {
                
alert(  "Text: "+opts[i].text
                        
"\r\nValue: "+opts[i].value
                        
"\r\nSelected: "+(opts[i].selected?"yes":"no") ); 
}
}

</script>

</head>

<body>
<select id="sel"  onChange="clear_selectedindex(this);"> 
        <option value="a">Aquarion</option> 
        <option value="b">Broken</option> 
        <option value="c">3. Celiane</option> 
</select> 


</body>
</html>