Creating a new drop down menu when an option in an existing one is chosen
I’m using Coldfusion 9,0,0,251028 on Windows 7 64-bit, with a Microsoft Access 97 database.
I’m having a problem with using a drop-down menu to create another one below it once a certain option is selected
(in this case, the option named “Breaking News”, which has an id of 31).
What event trigger should I use to create a drop-down menu underneath the first one when “Breaking News” is selected?
Should I be using Javascript for something like this, or can Coldfusion handle it?
Here’s the code:
<cfquery name="get_info" datasource="#db#">
select * from lists
order by department asc, list asc
</cfquery>
<div align="left">
<select name="list">
<option value="-1" selected> --------------------------------------
<cfoutput query="get_info" group="department">
<cfoutput group="list">
<cfif list neq "Breaking News Cell Phone">
<option value="#id#">#list#
</cfif>
</cfoutput>
<option value="-1"> --------------------------------------
</cfoutput>
</select>
</div>
