Gary,
Are you using ##FF0000 or #FF0000 use the one with two pounds signs that
way coldfusion will recognize it.

On 10/24/07, Gary Strommen <[EMAIL PROTECTED]> wrote:
>
> 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##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##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 the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

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