ciao a tutti ho un problema con una select che dovrebbe a seconda della selezione effettuata aggiornare una seconda select (tipo province città, per capirci ).
Il problema sta nel fatto che IE non riconosce proprio onchange sulla prima select infatti la funzione non viene richiamata proprio, mentre con mozilla e tutto ok , posto il codice:
qualcuno sa dirmi come posso modificare con un cosa tipo try catch per fare funzionare con IE
grazie in anticipo

function aggiorna(){
var sel=document.getElementById("sel");
var subsel=document.getElementById("Sub");
//Azzero il contenuto della seconda select
for (var i = subsel.length - 1; i >= 0; i--)
subsel.remove(i);

var cat=sel.options[sel.selectedIndex].value;
alert(cat);
for(var i=1 ; i<Menu[cat].length ; i++ ){
var opt1=document.createElement("OPTION");
opt1.setAttribute("value" , Menu[cat][i]);
var oText1=document.createTextNode(Menu[cat][i]);
opt1.appendChild(oText1);


document.getElementById("Sub").appendChild(opt1);

} }








<select name="Sub" id="Sub">
<option disabled="disabled" selected="selected">seleziona:</option>
</select> </div>
<select id="sel" name="sel" onchange="aggiorna()" >
<option disabled="disabled" selected="selected" value="">SCEGLI:</option>
<option value="cof">COF</option>
<option value="cca">CAREER CENTRE D'ATENEO</option>
<option value="uff">UFFICIO STAGE D'ATENEO</option>
<option value="consueling">CENTRO DI CONSUELING D'ATENEO</option>
<option value="job">JOB PLACEMENT D'ATENEO</option>
<option value="checkin">CHECK-IN</option>
<option value="ulisse">ULISSE</option>
<option value="lavoce">LA VOCE</option>

</select>