do you mean:
<select name="whatever">
<option value="-1(or whatever)" SELECTED>Pick one</option>
<cfoutput query="yourQueryName">
<option value="yourID">Your Description</option>
</cfoutput>
</select>
There are a few different ways to do the same thing, like using <cfloop>
instead of <cfoutput>. I've never bothered with the <cfselect>, though
I know of nothing wrong with it.
Hopefully this helps.
DM
-----Original Message-----
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 5:26 PM
To: CF-Talk
Subject: CFSELECT
I'm using CFSELECT to dynamically populate a drop down. The issue I have
is
that I want to create a blank one so that users don't just leave it and
select the one at the top of teh lsit all the time by default. You can
create a blank entry in the drop down by adding <option> between the
CFSELECT tags as below. The trouble with this is that its always at the
bottom of the dropdown. Is there a way to get it at the top of the
dropdown
<cfselect name="LocationID" message="Please select a location where this
position is being offered" query="GetLocations" value="LocationID"
display="Location" required="yes">
<option value = "" selected></option>
</cfselect>
TIA!!!
**********
Kevin Parker
Web Services Manager
WorkCover Corporation
[EMAIL PROTECTED]
www.workcover.com
p: 08 82332548
f: 08 82332000
m: 0418 806 166
**********
************************************************************************
This e-mail is intended for the use of the addressee only. It may
contain information that is protected by legislated confidentiality
and/or is legally privileged. If you are not the intended recipient you
are prohibited from disseminating, distributing or copying this e-mail.
Any opinion expressed in this e-mail may not necessarily be that of the
WorkCover Corporation of South Australia. Although precautions have
been taken, the sender cannot warrant that this e-mail or any files
transmitted with it are free of viruses or any other defect.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any
copies.
************************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4