I am not even sure if this is possible.  I want to have multiple pull down 
menu's on a single page.  The options of the second pull down menu will be 
based on the selection of the first pull down menu.

Specifically, I have a list of classes in a table.  The first pull down menu is 
for the term (spring, summer, fall) and the second pull down menu would only 
show the classes for the term selected.  I know how to put the code for a pull 
down menu but not for the desired effect that I have requested above.  Here is 
my starter code:

<!--- Selects term and only unique records --->
<cfquery name="qGetTerm" datasource="xxxx">
    SELECT DISTINCT term
    FROM classes
    GROUP BY term;
</cfquery>

<!--- Selects classes and only unique records --->
<cfquery name="qGetSectionTitle" datasource="xxxx">
    SELECT DISTINCT sectionTitle
    FROM classes
    GROUP BY sectionTitle;
</cfquery>

<select name="term" size="1" >
    <option value="" selected="selected"></option>
    <cfoutput query="qGetTerm">
        <option  value="#qGetTerm.term#">#qGetTerm.term#</option>
    </cfoutput>
</select>       

<select name="class" size="1" >
    <option value="" selected="selected"></option>
    <cfoutput query="qGetSectionTitle">
        <option 
value="#qGetSectionTitle.sectionTitle#">#qGetSectionTitle.sectionTitle#</option>
    </cfoutput>
</select>       

Any ideas?  Thanks in advance!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2753
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to