> I believe that this is how cfselect works by default. What
> you will need to
> do is to use a regular select tag, having the first option
> tag as the blank,
> make sure that it is selected by default, then put the
> next option tag in a
> cfoutput.

Yep -- this is the way I usually get around it. It's one of the collection
of quirky reasons why I tend to avoid using <cfform> and the related form
management tags. The other alternative is to simply add "SELECTED" to the
empty tag at the bottom of your <cfselect> (assuming that the select box
isn't supposed to be pre-populated with a previous user selection) or use
JavaScript to select the empty entry after the page loads. In my experience,
IE at least will select the last item in the <select> tag with the
"SELECTED" attribute (if multiple items are labelled selected and there's no
multiple attribute in your select), however, I suspect this is a
browser-specific implementation or in any event, probably rather prone to
client interpretation. And you may have the same sort of issue with
JavaScript, so the standard html <select> tag and the <cfoutput> may be your
better bet -- not to mention that the JavaScript is possibly even more code
and more complex to write.

hth

s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to