I have a drop down menu being created from a query:

   <cfselect name="class" size="1">
      <option value="" selected="selected"></option>
      <cfoutput query="qGetClasses">
         <option 
value="#qGetClasses.primaryKey#">#qGetClasses.sectionTitle#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#DateFormat(qGetClasses.startingDate,
 "mm/dd/yyyy")# - #DateFormat(qGetClasses.endingDate, "mm/dd/yyyy")#</option>
      </cfoutput>
   </cfselect>  

What I would like to do is be able to change to color of the text based on 
specific criteria, as in if the class is no accepting students.  I would do 
this through an CFIF clause (not created yet).  I want to prove that the 
formatting can be accomplished before I go to the next step of creating the 
CFIF clause.

Problem.  I was hoping it could be as simple as adding tags around the option 
seen below:

<option value="#qGetClasses.primaryKey#"><font 
color="#FF0000">#qGetClasses.sectionTitle#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#DateFormat(qGetClasses.startingDate,
 "mm/dd/yyyy")# - #DateFormat(qGetClasses.endingDate, 
"mm/dd/yyyy")#</font></option>

However, coldfusion complains because of the # sign in <font color="#FF0000">.  
A Simple Bold tag could suit my needs too but <b> or <strong> tags seem to have 
no effect either.

Is it even possible to format text inside a drop down menu?

As always, thanks in advance!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3117
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