I find this simple, but only get one item to highlight.
I am building a multiple select box from one query. From another query I
pull a user account. I want to highlight those options that the user has
previously selected while displaying the general list.
It highlights one option, but not for the multiple selections previously
made by the user:
<select name="categories" multiple size="3">
<cfloop list="#query.user_categories#" index="C" delimiters=",">
<cfoutput query="showcategories">
<option value="#cat_title#"<cfif trim(#cat_title#) is
trim(#C#)>selected</cfif>>#cat_title#</option>
</cfoutput>
</cfloop>
Thanks a Bunch to the Kings and Queens of code,
Rich
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.