I have a Bootstrap table as follows,
<table class="table table-striped table-bordered">
<tr><th>First Name</th><th>Last Name</th><th>Age</th><th>Delete</th></tr>
<tr><td>Mickey</td><td>Mouse</td><td>5</td><td><button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-trash"></span></button></td>
<tr><td>Tom</td><td>Cat</td><td>6</td><td><button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-trash"></span></button></td>
<tr><td>Pooh</td><td>Bear</td><td>4</td><td><button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-trash"></span></button></td>
<tr><td>Donaled</td><td>Duck</td><td>7</td><td><button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-trash"></span></button></td>
<tr><td>Jerry</td><td>Mouse</td><td>8</td><td><button type="submit" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-trash"></span></button></td>
</table
Whenever a user clicks on the trash button, that specific row should get deleted. How can I accomplish that using jQuery?
Here's a link to what I've got so far - http://jsbin.com/gabodamace/edit?html,output
Thanks in advance!