I am trying to pass the value from one drop down box to populate the second box using cfquerys.
for example if I select Land Vechicles in 1st list it will allow me to select land vehicles only in the 2nd list.
Can this be done?
Here is an example of my code:
<SCRIPT LANGUAGE="JavaScript">
function SelectChange(RackID)
{
var FormAPD1 = RackID;
alert(FormAPD1);
}
</SCRIPT>
<select name="emptyrack" size="1" onchange="javascript:SelectChange(document.assignempty.emptyrack.options[document.assignempty.emptyrack.selectedIndex].value)">
<option>Select</option>
<cfoutput query="emptyboxes_rack">
<option value="#RackID#">
#RackID#
</option>
</cfoutput>
</select>
I want to access the RackID for the next select list.
Can someone help me please
Thanx
Richard
for example if I select Land Vechicles in 1st list it will allow me to select land vehicles only in the 2nd list.
Can this be done?
Here is an example of my code:
<SCRIPT LANGUAGE="JavaScript">
function SelectChange(RackID)
{
var FormAPD1 = RackID;
alert(FormAPD1);
}
</SCRIPT>
<select name="emptyrack" size="1" onchange="javascript:SelectChange(document.assignempty.emptyrack.options[document.assignempty.emptyrack.selectedIndex].value)">
<option>Select</option>
<cfoutput query="emptyboxes_rack">
<option value="#RackID#">
#RackID#
</option>
</cfoutput>
</select>
I want to access the RackID for the next select list.
Can someone help me please
Thanx
Richard