JSFiddle - React, Tailwind, and code Playground

by rsta

HTML

<button id="btn_delete" class="btn btn-danger btn-sm">Delete</button>

JavaScript

$(document).ready(function () {
    $('#btn_delete').on('click', function () {
        alert('');
        bootbox.confirm("Are you sure ? ", function (answer) {
            alert('User has pressed ' + answer);
        });
    });
});