JSFiddle - React, Tailwind, and code Playground

by R J

HTML

<button class="tablesaw-sortable-btn">
       <div class="checkbox checkbox-success">
        <input id="test" name="test" type="checkbox">
        <label for="test">
          Information
        </label>
      </div>
    </button>

JavaScript

$(function(){    
    $("button.tablesaw-sortable-btn").on("click",function(){        
        alert("button clicked");        
    });
    $("input#test").on("click",function(e){        
        e.stopPropagation();
    });
});