Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <table class="table table-hover" id="paper-table"><thead><tr><td><b>Pubmed ID</b></td><td><b>Title</b></td><td><b>Year</b></td><td><b>Journal</b></td><td></td></tr></thead>
  2. <tbody>
  3. <tr>
  4. <td> id </td>
  5. <td> title </td>
  6. <td> year </td>
  7. <td> journal </td>
  8. <td><a href="#" class="delete-row"><span class="glyphicon glyphicon-trash"></span></a></td>
  9. </tr>
  10. </tbody>
  11. <tfoot><tr><span id="table-title">Paper</span></tr></tfoot></table>
  12.  
  13. $('#paper-table').on('click', 'a', function(){
  14. $(this).closest('tr').remove();
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement