onchange
Hi,
The second dropbox is displayed when location eq 5 is selected from the first drop box. When i select the value from second dropbox, i want the value from the first drop box stays the same as location eq 5, and results need to refreseh to reflect with the select from the second box. Can you pls help?- thx
<cfoutput>
<cfform name="myform" action="" method="post">
Location:
<select name="location" onchange="this.form.submit();">
<cfloop query="variables.qlocations" >
<option value="#id#" <cfif isDefined('form.location')><cfif form.location eq "#id#">selected</cfif></cfif>>#location#</option>
</cfloop>
</select>
<cfif form.location eq 5>
<select name="action" onchange="this.form.submit();">
<cfloop query="variables.qAction" >
<option value="#id#" <cfif isDefined('form.action')><cfif form.action eq "#id#">selected</cfif></cfif>>#action#</option>
</cfloop>
</select>
</cfif>
</cfform>
<!---display results here--->
....
<!---end display--->
</cfoutput>
