I have a <select> input from which depends another one. I've created a function that onChange of the "parent" <select>, feeds the "child" one with its proper values. The problem is that i cannot acces the value selected in the "parent" <select>.
The function is pretty simple
Code: Select all
function obtenerPcia(){
if ( document.medio_nuevo.provincia.value == 'Buenos Aires' ){
return;
} else {
window.open("./medioscar.php?provincia='"+document.medio_nuevo.provincia.value+"'");
}
}
In mozilla the script runs fine and it shows the correct value, but in ie6 it won't altough i can get the selectedIndex... But the value won't show up, however i try to access it (i've tried with the options[select.selectedIndex].value and the result was the same)
Im pretty desperate so any help is welcome
Thanks!
