add remove button and bootstrap fonts
This commit is contained in:
6
index.js
6
index.js
@@ -6,6 +6,12 @@
|
||||
$('#task-list').append('views/task-item.ejs', {title: $('#task').val()});
|
||||
});
|
||||
|
||||
$(document).on('click', '.remove-task', function(ev) {
|
||||
var task = $(ev.currentTarget).parent();
|
||||
task.remove();
|
||||
});
|
||||
|
||||
|
||||
//initial page setup
|
||||
$('.container').html('views/tasks.ejs', {});
|
||||
})(jQuery)
|
Reference in New Issue
Block a user