Dynamically setting an option as selected in cfselect
Hi,
I have a cfselect that is defined as such:
<cfselect name="ScheduledFollowup" >
<option value=""></option>
<cfloop index="fol" from="0" to="50">
<option value="<cfoutput>#fol#</cfoutput>>
<cfoutput>#fol#</cfoutput>
</option>
</cfloop>
</cfselect>
What I need to do is insert a "selected" attribute on the option that matches a value retrieved in an earlier query. I have tried imbedding a <cfif> statement but that doesn't work.
Any ideas?
