If it is THAT urgent, the fastest method is RTFM ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
why are all of your questions very urgent!!!?
cfloop query=foo
option value=#foo.id#cfif condition
selected=selected/cfif#foo.data#/option
/cfloop
it's up to you to determine what condition is, since you didn't specify.
On 6/27/07, Devi r [EMAIL PROTECTED] wrote:
Hi All,
I'm populating
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!!!
Are you using cfselect? If so, it has an attribute called selected.
cfselect name=thename query=thequery selected=#somevalue#
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
4 matches
Mail list logo