I read that you got this fixed, but for future reference I remember
reading somewhere (I think on cf-talk) that the <option
value=""></option> Needs to have a space between the "" to make it work
properly.

Steve


-----Original Message-----
From: Torrent Girl [mailto:moniqueb...@gmail.com] 
Sent: Thursday, February 17, 2011 5:04 AM
To: cf-talk
Subject: Re: SELECT - Option selected


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>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:342380
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to