If/Else in <option>s (Devil Select)

Select an option and submit the form. When the form is submitted, the option you selected will be set using <cfif> tags within each <option>:

<option value="1"<cfif form.mySelect eq 1> selected</cfif>>One</option>

Form values - struct
MYSELECT 0

Back