Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <table class="table">
- <thead>
- <tr>
- <th>To Do List</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <div class="checkbox">
- <input type="checkbox" id="checkbox1" /><label>Task 1</label><label class="glyphicon glyphicon-trash"></label>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="checkbox">
- <input type="checkbox" id="checkbox2" /><label>Task 2</label><label class="glyphicon glyphicon-trash"></label>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="checkbox">
- <input type="checkbox" id="checkbox3" /><label>Task 3</label><label class="glyphicon glyphicon-trash" id="3"></label>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- $('input[type="label"]').click(function(){
- var id = $(this).attr("id");
- $(this).parent("tr:first").remove()
Add Comment
Please, Sign In to add comment