troubleshooting Question

best drop down menu advice

Avatar of Shawn
ShawnFlag for Canada asked on
Web Servers
2 Comments1 Solution290 ViewsLast Modified:
I want to make a simple drop down menu in a page to select email templates. The selected template should then be copied to 2 fields: the fEmailSubject (input) and fEmailBody (text area).

what would the best way to do the drop down menu? the top level "Templates" should not be a link. The (verticle) drop down should show up on hover and on click should poplulate the form fields.
<cfquery name="getEmails" datasource="#application.DSHome#" username="#application.dbuserHome#" password="#application.dbpassHome#">
SELECT [EmailTemplateID]
  FROM [tblEmailTemplate]
        <cfoutput query = "getEmails">
        <cfif getEmails.RecordCount IS not 0>
        <li><!--- instead of a link I want these values to populate the  --->#TemplateTitle#</a><br>***<br>#EmailSubject#<br>#EmailBody# </li>
        <li><a href="">*** no templates ***</li>
<FORM action=index.cfm?action=members method=post enctype="multipart/form-data" name="form">
<INPUT name=fEmailSubject class=formcell id=Subject  size=41 maxLength=100>
<TEXTAREA class=formcell name=fEmailBody rows=5 cols=60></TEXTAREA>

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros