title: How to change the button color when it is active using bootstrap?
body: <p>I am using bootstrap 3. I want to change button color when I click on button.I mean button should be in different color when it is selected. How can I do this using css?</p>
  
  <p>My codes are :</p>
  
  <pre><code>&lt;div class="col-sm-12" id=""&gt;
      &lt;button type="submit" class="btn btn-warning" id="1"&gt;Button1&lt;/button&gt;
      &lt;button type="submit" class="btn btn-warning" id="2"&gt;Button2&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>