in the index of another ?
I have 2 drop downs, i want to include the value of the 2nd drop down in the index of the first :
1st drop down :
<select style="width:100" name="ForTable" onchange="parent.Main1.location.href=this.options[this.selectedIndex].value">
<option value="ManageData.asp?ForTable=Contacts">a Contact</option>
<option value="ManageData.asp?ForTable=Phones">a Phone</option>
<option value="ManageData.asp?ForTable=Address">an Address</option>
<option value="ManageData.asp?ForTable=Notes" Selected >a Note</option>
<option value="ManageData.asp?ForTable=Misc">Misc Info</option>
</select>
2nd drop down :
<select style="width:200" size="5" name="CompanyID">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
so i want to be able to include the value of the selected option in the 2nd drop down , into the value of the first.
so i can get something like : ManageData.asp?ForTable=Notes&CompanyID=2
for the value of the 1st drop down.
I tried this but its not working :
ManageData.asp?ForTable=Notes&CompanyID=CompanyID.options[this.selectedIndex].value
thanx.
I have 2 drop downs, i want to include the value of the 2nd drop down in the index of the first :
1st drop down :
<select style="width:100" name="ForTable" onchange="parent.Main1.location.href=this.options[this.selectedIndex].value">
<option value="ManageData.asp?ForTable=Contacts">a Contact</option>
<option value="ManageData.asp?ForTable=Phones">a Phone</option>
<option value="ManageData.asp?ForTable=Address">an Address</option>
<option value="ManageData.asp?ForTable=Notes" Selected >a Note</option>
<option value="ManageData.asp?ForTable=Misc">Misc Info</option>
</select>
2nd drop down :
<select style="width:200" size="5" name="CompanyID">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
so i want to be able to include the value of the selected option in the 2nd drop down , into the value of the first.
so i can get something like : ManageData.asp?ForTable=Notes&CompanyID=2
for the value of the 1st drop down.
I tried this but its not working :
ManageData.asp?ForTable=Notes&CompanyID=CompanyID.options[this.selectedIndex].value
thanx.