title: Dynamic select option if radio button checked
body: <p>The problem is that I don't know how to combine the 2: radio and select option, I have static radio buttons and dynamic select option from database using php and mysql</p>
  
  <pre><code>&lt;label&gt;&lt;input type="radio" name="tiptricou" value="1" checked="checked" &gt;1&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="tiptricou" value="2"&gt;2&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="tiptricou" value="3"&gt;3&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="tiptricou" value="4"&gt;4&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="tiptricou" value="5"&gt;5&lt;/label&gt;
  &lt;label&gt; &lt;input type="radio" name="tiptricou" value="6"&gt;6&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="tiptricou" value="7"&gt;&lt;/label&gt;
  </code></pre>
  
  <p>and the dynamic select option:</p>
  
  <pre><code>       `&lt;div id="selecteaza-marimea"&gt;
          &lt;?php
          $sql="SELECT marimea FROM stocuri_tricouri where stoc_ramas &gt; 0 order by ID"; 
          echo "&lt;select name='marimea'&gt;"; 
          echo "&lt;option selected disabled&gt;SELECTEAZA MARIMEA&lt;/option&gt;"; 
          foreach ($dbo-&gt;query($sql) as $row){
          echo "&lt;option value = $row[marimea]&gt; $row[marimea]&lt;/option&gt;"; 
          }
          echo "&lt;/select&gt;";
          ?&gt;
          &lt;/div&gt;`
  </code></pre>
  
  <p>mysql database</p>
  
  <p><code>id tiptricou marimea cantitate_initiala stoc_ramas
  1      1        S            250             250
  2      1        M            250             250
  3      1        L            250             250
  4      2        XL            250             250
  5      2        M            250             250
  6      3        S            250             250
  7      3        M            250             250
  8      4        S            250             250
  9      5        XL            250             250
  10      6        XXL            250             250
  11      6        S            250             250
  12      7        S            250             250
  13      7        M            250             250</code></p>
  
  <p>if I check radio 1 should display only 3 data
  radio 2 = 2 display select and so on...</p>
  
  <p>now it's show me all data from database at <code>marimea</code> column</p>