I tried that too. Here is the code
Code:
<select size="1" name="choice" id="choice" onchange="document.getElementById('redirect').value=this.value">
what about this one? Should it be
Code:
<input name="_redirect" type="hidden" />
or
<input name="_redirect" type="hidden" value=""/>
Anyway, it does not work.
I tried another workaround.
Code:
<select size="1" name="choice" id="choice" onchange="goto()">
function goto(){
x1 = document.test.choice.selectedIndex;
x2 = document.test.choice.options[x1].value;
document.getElementById('_redirect').value=x3;
}
This doesn't work too.
I guess, I am making a mistake here. You are probably referring to hidden element's id. I now corrected it to
Code:
<input name="_redirect" type="hidden" id="hid" />
and made correction here:
Code:
<select size="1" name="choice" id="choice" onchange="document.getElementById('hid').value=this.value">
yet, it doesn't work.