Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Select dropdown list show last record

$
0
0

I have following select contorl on the form and it has a record set the code like following,


<select id="MySelect">
       <cfoutput query="spList">
         <option value="#spList.MyID#" <cfif (isDefined("spList.MyID") AND spList.MyID EQ spList.MyID)

>selected="selected"</cfif>>#spList.MyNUMBER# - #spList.<MyNAME#</option>
       </cfoutput>
     </select>

 

The form show lasr record of the record set on the list.

I would like to know are there any way to let the dropdown list show the first record when the form showup.

Your help and information is great appreciated,

 

Regards,

 

Iccsi,


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>