title: cfselect - how to dynamically set the selected option value w/ manual values?
body: <p>If I have a select setup with with hard manual values and I want to set one of the options below as the default value based on that, how would you go about it?    Like when this form is reached theres a variable that will contain 1 through 12.  So if it's "6" I'd like to make "6 months" the selected value.    I know you can put "selected = "selected"" directly in the option values but I don't see how to get an if statement in there.   I tried doing it a few was in the cfselect and couldn't figure out anything that worked.</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;cfselect name="months_select" id="months_select" multiple="no"&gt;                                                
      &lt;option value="1"&gt;1 Month&lt;/option&gt;                                                                                              
      &lt;option value="2"&gt;2 Months&lt;/option&gt;
      &lt;option value="3"&gt;3 Months&lt;/option&gt;
      &lt;option value="4"&gt;4 Months&lt;/option&gt;
      &lt;option value="5"&gt;5 Months&lt;/option&gt;
      &lt;option value="6"&gt;6 Months&lt;/option&gt;                                                                                                 
      &lt;option value="7"&gt;7 Months&lt;/option&gt;
      &lt;option value="8"&gt;8 Months&lt;/option&gt;
      &lt;option value="9"&gt;9 Months&lt;/option&gt;
      &lt;option value="10"&gt;10 Months&lt;/option&gt;
      &lt;option value="11"&gt;11 Months&lt;/option&gt;
      &lt;option value="12"&gt;12 Months&lt;/option&gt;   
  &lt;/cfselect&gt;
  </code></pre>