Disregarding how annoying the recent "omg omg it's urgent" trend is... try
this.

<cfset defaultvalue="whatever" />

<select name="myselect" size="1">
<cfloop query="myquery">
<option value="#valuecolumn#"<cfifvaluecolumn is defaultvalue>
selected</cfif>>#disaplycolumn#</option>
</cfloop>
</select>

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Devi r [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 2:40 PM
To: CF-Talk
Subject: Default Value for Select box - Very Urgent!!!

Hi All,
 I'm populating the select box using cfquery. I want a particular value to
be selected as default. How can i do that??
It's very urgent. Please help me!!!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282392
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to