Hi,
I am trying to read the contents of a drop down select box in Netscape 4.7+
this is the script (which works in ie of course) that I am using
function go(){
var index = frmChoosePeople.CountryID.selectedIndex
var id = document.frmChoosePeople.CountryID.options[index].value;
document.frmChoosePeople.test.value = index
}
<form name="frmChoosePeople" id="frmChoosePeople">
<select name="CountryID" onchange="go();">
<option value="1">New Zealand</option>
<option value="2">Australia</option>
<option value="3">USA</option>
</select>
<input type="text" name="test" value="">
</form>
Please help
I am trying to read the contents of a drop down select box in Netscape 4.7+
this is the script (which works in ie of course) that I am using
function go(){
var index = frmChoosePeople.CountryID.selectedIndex
var id = document.frmChoosePeople.CountryID.options[index].value;
document.frmChoosePeople.test.value = index
}
<form name="frmChoosePeople" id="frmChoosePeople">
<select name="CountryID" onchange="go();">
<option value="1">New Zealand</option>
<option value="2">Australia</option>
<option value="3">USA</option>
</select>
<input type="text" name="test" value="">
</form>
Please help