I've been trying to activate a delete button I created using jQuery
I have tried moving the code inside and out of the $(document).text();
I have tried targeting a class on the created button
I am not even getting an error from in my console.
What am I doing wrong?
var day = '';
var time = '';
var task = '';
$(document).text(function() {
  $("#saveButton").on("click", function() {
    //Save day, time & task to footer.
    day = $("#day").val();
    time = $("#time").val();
    task = $("#task").val();
    $("#inputData").append("<li>" + day +
      " | " + time + " | " + task +
      " | " + "<button class='btn btn-success edit'>Edit</button>" +
      " | " + "<button class='btn btn-danger delete'>Delete</button><br>" + "</li>");
  });
});
$(".delete").on("click", function() {
  day = $("#day").empty();
  time = $("#time").empty();
  task = $("#task").empty();
});
 
     
    