title: How to change bootstrap label background color after click using CSS?
body: <p>Bootstrap HTML page contents gender selection as brides and grooms . The when the page is loaded <code>btn-group</code> as follows </p>
  
  <p><a href="https://i.stack.imgur.com/YDFnJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YDFnJ.jpg" alt="enter image description here"></a></p>
  
  <p>Then the mouse clicked (on brides button) and release mouse the <code>btn-group</code> as follows. The background color was changed and i tried to change in to red using <code>css</code>. but not working. Is there any possibility to change Bootstrap default label background color after clicking, using <code>css</code>? </p>
  
  <p><a href="https://i.stack.imgur.com/IT9wv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IT9wv.jpg" alt="enter image description here"></a> </p>
  
  <p>CSS</p>
  
  <pre><code>.gender-label:active { background-color: red;} 
  </code></pre>
  
  <p>HTML
  </p>
  
  <pre><code>&lt;li&gt;
    &lt;div class="btn-group" data-toggle="buttons"&gt;
      &lt;label class="btn btn-default gender-label"&gt;
        &lt;input type="radio" name="options" id="option1" autocomplete="off"&gt;
        &lt;span&gt;Bride&lt;/span&gt;
      &lt;/label&gt;
      &lt;label class="btn btn-default gender-label"&gt;
        &lt;input type="radio" name="options" id="option2" autocomplete="off"&gt;
        &lt;span&gt;Groom&lt;/span&gt;
      &lt;/label&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>