title: If radio buttons is checked then display div in Codeigniter
body: <p>I'm trying to create a user form, I am stuck in it bacause I want that if A radio button is checked then display a div.I could not do this as I am little bit weak in javascript. please find my code below.
  My button is</p>
  
  <pre><code> &lt;label&gt;
      &lt;input type="radio" name="groups[]" value="6"&gt; Head of Distribution Sales
  &lt;/label&gt;
  </code></pre>
  
  <p>And after selecting the button I want to show this div</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label class="col-md-3 control-label"&gt;Regions&lt;/label&gt;
      &lt;div class="col-md-9"&gt;
              &lt;div class="checkbox-list"&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="43"&gt; Dhaka North
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="44"&gt; Dhaka South
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="45"&gt; Comilla
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="46"&gt; Chittagong
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="47"&gt; Khulna
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="48"&gt; Mymensingh
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="49"&gt; Sylhet
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="50"&gt; Rangpur
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="51"&gt; Bogra
                  &lt;/label&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" name="groups[]" value="52"&gt; Barisal
                  &lt;/label&gt;
              &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please help me guys solving this.</p>