Ok I have been trying to write a script that when i make a selection from a drop down menu it will display another dropdown menu based on the selection made. for isnstance.
for drop down 'A' if '1' is selcted show dropdown '1'
A1ien51
03-28-2006, 09:15 PM
basic idea:
var sel = document.forms[0].selectionName;
var strValue = sel.options[sel.selectedIndex].value;
document.forms[0].elements["OtherselectionList" + strValue].display = "inline";
run with that.
Eric
mull300
03-29-2006, 01:48 AM
ok so this is what my button code looks like and ugh?!?:confused: what am I doing wrong
<option value="MA" onFocus="javascript:showOptions("MA");">MA</option>
should have used onchange event, not onfocus, aplied on select element, not on options subelements:
<select onchange="showOptions(this.value)">