JSFiddle - React, Tailwind, and code Playground

by Abruzzi Hraig

HTML

<div class="btn-container">
    <button class="btn1">Button</button>
    <button class="btn2">Button</button>
</div>

JavaScript

$('.btn1').click(function(event){
    event.stopPropagation();
    alert('It is first btn');
});
$('.btn1').click(function(){
    alert('It is first btn');
});

$('.btn2').click(function(){
    alert('It is second btn');
});
$('.btn-container').click(function(){
    alert('It is btn container');
});