Guest User

Untitled

a guest
Jul 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <div class="container">
  2.  
  3. <table class="table">
  4. <thead>
  5. <tr>
  6. <th>To Do List</th>
  7. </tr>
  8. </thead>
  9. <tbody>
  10. <tr>
  11. <td>
  12. <div class="checkbox">
  13. <input type="checkbox" id="checkbox1" /><label>Task 1</label><label class="glyphicon glyphicon-trash"></label>
  14. </div>
  15. </td>
  16. </tr>
  17.  
  18. <tr>
  19. <td>
  20. <div class="checkbox">
  21. <input type="checkbox" id="checkbox2" /><label>Task 2</label><label class="glyphicon glyphicon-trash"></label>
  22. </div>
  23. </td>
  24. </tr>
  25.  
  26. <tr>
  27. <td>
  28. <div class="checkbox">
  29. <input type="checkbox" id="checkbox3" /><label>Task 3</label><label class="glyphicon glyphicon-trash" id="3"></label>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36.  
  37. $('input[type="label"]').click(function(){
  38. var id = $(this).attr("id");
  39. $(this).parent("tr:first").remove()
Add Comment
Please, Sign In to add comment