ctive-id'))[0];
        let deadlineField = taskList.querySelectorAll('.add-deadline')[0];
        deadlineField.value = parentDeadline;
      });

      // Toggle ``readonly`` attribute on fields and save
      $editTodoInout.click(function () {
        $(this).attr('readonly', false);
      });

      $editTodoInout.blur(function () {
        $(this).attr('readonly', true);
        let currentValue = $(this).val();
        let previousValue = $(this).attr('value');
        $(this).attr('readonly', true);
