title: Select drop-down value based on radio button - dynamic values
body: <p>I have a form that has all the fields dynamic from database. I have questions/answers kind of form. What I am trying to do is that if a radio button of a question 3 is 'yes', then show a number (ex:5) on drop-down question. I am trying to do this without submitting the form, is ajax the only way?
   Here is the code:</p>
  
  <pre><code>&lt;input type="radio" name="YesNo_#Questions.QId#" id="YesNo_#Questions.QId##" value="1"/&gt; Yes
  &lt;input type="radio" name="YesNo_#Questions.QId#" id="YesNo_#Questions.QId#" value="0"/&gt; No
  
  &lt;label class="columnDescription"&gt;&lt;/label&gt;
     &lt;select name="NumericResponse_#QId#"&gt;
       &lt;option value=""&gt;Please select&lt;/option&gt;
         &lt;cfloop from="1" to="5" index="i"&gt;
           &lt;option&gt;#i#&lt;/option&gt;
        &lt;/cfloop&gt;
    &lt;/select&gt;
  </code></pre>