JSFiddle - React, Tailwind, and code Playground
HTML
<button class="btn button-success" id="clickme">Buy Now</button>
<div class="book" style="display: none;">
content
</div>
<button class="btn button-success" id="clickme">Buy Now</button>
<div class="book" style="display: none;">
content
</div>
<button class="btn button-success" id="clickme">Buy Now</button>
<div class="book" style="display: none;">
Content here
</div>
<button class="btn button-success" id="clickme">Buy Now</button>
<div class="book" style="display: none;">
content
</div>
JavaScript
$( ".button-success" ).click(function() {
$(this).next(".book").slideToggle( "slow", function() {
// Animation complete.
});
});