title: Need to change the background color of a button on click using Javascript or jquery?
body: <p>I have 2 buttons with class df-button and df-web-design -
  i wish to change one any of these buttons background color meaning the background should only be changed of the clicked button itself and then when we click on the other button the background should be return to default. My choice is to use Jquery - Something like an active tab item on click-</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-js lang-js prettyprint-override"><code>&lt;script&gt;
  $(document).ready(function(){
    $("button").click(function(){
      $(".df-web-design").addClass("df-button-active");
      $(".df-button").removeClass("df-button-active");
    });
  });
  &lt;/script&gt;</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.df-button-active {
  background-color: green;
  color: white;
  transition: all 0.5s ease;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a class="df-button" href"#"&gt;All&lt;/a&gt;
  &lt;a class="df-web-design" href"#"&gt;All&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Since this is a page builder in wordpress so im using page css or a code snippet like this-</p>
  <p>Is there something im missing as its not working?</p>
  <p>Im kinda a new bie in JS so do pardon my inexpertise. Much appreciated and THanks in advance.</p>