JSFiddle - React, Tailwind, and code Playground

by basiclaser

HTML

<button class="toggler">aaa</button><button class="toggler">bbb</button>
<div class="threepanels">threepanels</div><div class="clientslider">clientslider</div>

CSS

.active{background:yellow}

JavaScript

$('.clientslider').toggle();
$('.toggler:first-of-type').toggleClass('active');

$('.toggler').click(function() {
   $('.threepanels').toggle();
   $('.clientslider').toggle();
   $('.toggler').toggleClass('active');
   $(".toggler").prop( "disabled", false );
   $(this).prop( "disabled", true );
   return false;
});