I have a simple one: <cfselect name="endampm" required="yes" message="Please select an AM/PM for the end time" id="endampm"> <option value=""></option> <option value="AM" <cfif schedule.endampm EQ "AM">selected="selected" </cfif>>AM</option> <option value="PM" <cfif schedule.endampm EQ "PM">selected="selected" </cfif>>PM</option> </cfselect>
>depends on cfselect... > >in simple cfselect - one based on an in-page query, for example - you >can provide a value in the 'selected' attribute and an <option> with >that value will be pre-selected. > >advanced cfselect - one with a binding - does not support this >functionality. but there are javascript work-arounds for that: google >'cfselect binding selected' and you will find them > >Azadi > >On 16/02/2011 21:34 , Torrent Girl wrote: >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm