I am looping though a list that outputting that into a select control (this
is the JS and code that Charlie sent me last week. Thanks Charlie). The loop
works fine as does the select, but when I go to the edit page where I want
to select the item in the list that is in the database, it is not working.
This should really be no different than outputting a query to populate the
list, right? Here is the code below:
<cfoutput>
<select name="startTime" id="startTime" onchange="changeEndTime(
this.selectedIndex);">
<cfloop list="#timelist#" index="i">
<option<cfif getElectionProcedure1Ret.StartTime IS
i>Selected</cfif>>#i#</option>
</cfloop>
</select>
</cfoutput>
--
Bruce Sorge
"I'm a mawg: half man, half dog. I'm my own best friend!"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270202
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4