Thanks for the replies, Charlie and Brian...
Actually, I should have been more clear.
I've got this code working, which "re-selects" all of the
selected citis:
<cfoutput query="get_cities">
<cfif (isDefined("form.fieldnames") and isDefined("session.city") and
session.city contains
#city#) or session.city is #city#>
<option value="#city#" selected>#city# - #num_cities#</option>
<cfelse>
<option value="#city#">#city# - #num_cities#</option>
</cfif>
</cfoutput>
What I need now is to get the first selected item to display
at the top of the list.
Will that require javascript? jQuery, perhaps?
Rick
> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2008 2:33 PM
> To: CF-Talk
> Subject: Re: Is there a way to do this?
>
> something like:
>
> <select name="city">
> <option value="#cityID#"<cfif form.city is cityID>
> selected="selected"</cfif>>#city#</option>
> </select>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308679
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4