JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<div id="status" class="alert alert-success"></div>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Título</th>
<th>Detalhes</th>
<th>Status</th>
<th>Ação</th>
</tr>
</thead>
<!-- start: Table Body -->
<tbody>
<tr class="btnDelete" data-id="1">
<td>1</td>
<td><a href="#">Título x</a></td>
<td>Blá blá blá</td>
<td>Ativo</td>
<td>
<button class="btn btn-danger btnDelete" href="">Apagar</button>
</td>
</tr>
<tr class="btnDelete" data-id="2">
<td>2</td>
<td><a href="#">Título y</a></td>
<td>Blá blá blá</td>
<td>Ativo</td>
<td>
<button class="btn btn-danger btnDelete" href="">Apagar</button>
</td>
</tr>
</tbody>
</table>
<!--/table-collapse -->
<!-- start: Delete Coupon Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title" id="myModalLabel">Exclusão de registro</h3>
</div>
<div class="modal-body">
<h4> Você gostaria de deletar este item?</h4>
</div>
<!--/modal-body-collapse -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" id="btnDelteYes" href="#">Sim</button>
<button type="button" class="btn btn-default"...
JavaScript
$(function() {
$('#status').hide();
});
$('button.btnDelete').on('click', function (e) {
e.preventDefault();
var id = $(this).closest('tr').data('id');
$('#myModal').data('id', id).modal('show');
});
$('#btnDelteYes').click(function () {
var id = $('#myModal').data('id');
$('[data-id=' + id + ']').remove();
$('#status').text('Registro apagado com sucesso!').fadeIn('slow');
$('#myModal').modal('hide');
setTimeout(function(){
$('#status').fadeOut('slow');
}, 4000);
});