chek the following jQuery script to open a modal on a button click.
$('.btn-trash').click(function(){
$("#deleteTriggerModal").modal('show');
});
Turn your Figma design into a fast, production-ready frontend — in 2–5 days. Hire me on Upwork.
Blog