title: Radio buttons as tabs
body: <p>I want to display radio buttons as tabs. Following this <a href="https://codepen.io/istavros/pen/hiuvF" rel="nofollow noreferrer">codepen</a>, I've attempted this in my project. But when I click on pseudo tab, nothing happens. It doesn't get <code>checked</code>. </p>
  
  <p>How can I achieve the effect?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>input.tgl-radio-tab-child {
    position: absolute;
    left: -99999em;
    top: -99999em;
    opacity: 1;
    z-index: 1;
  }
  
  input.tgl-radio-tab-child+label {
    cursor: pointer;
    float: left;
    border: 1px solid #aaa;
    margin-right: -1px;
    padding: .5em 1em;
    position: relative;
  }
  
  input.tgl-radio-tab-child+label:hover {
    background-color: #eee;
  }
  
  [type=radio]:checked+label {
    background-color: #c30;
    z-index: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;label for="abc"&gt;ABC&lt;span style="color: red;"&gt;*&lt;/span&gt;&lt;/label&gt;
  &lt;div class="form-check"&gt;
    &lt;div class="tgl-radio-tabs"&gt;
      &lt;input type="radio" class="form-check-input tgl-radio-tab-child" name="abcorigin"&gt;&lt;label class="radio-inline"&gt;ABCDEFGHIJKL&lt;/label&gt;
      &lt;input type="radio" class="form-check-input tgl-radio-tab-child" name="abcorigin"&gt;&lt;label class="radio-inline"&gt;MNOPQRSTUVWXYZ&lt;/label&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>