Oh and as a matter of preference (and for some code checking tools) I
hate it when tags are embedded in other tags.
I would re-write this as:
<cfif form.pagetype is "personal">
<input type="radio" name="pagetype" value="personal"
checked="checked" />
<cfelse>
<input type="radio" name="pagetype" value="personal" />
</cfif>Personal
Steve
-----Original Message-----
From: Yuliang Ruan [mailto:[email protected]]
Sent: Thursday, May 27, 2010 4:24 PM
To: cf-talk
Subject: Re: How to make a select option tag selected in CF?
oh for radiobuttons it's
<input type="radio" name="pagetype" value="personal" <cfif
form.pagetype is "personal">CHECKED</cfif>>Personal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm