title: Issues removing an "<li>" using e.target.parentElement.remove()
body: <p>I am creating a To Do list and am trying to remove an li line after the remove button has been clicked. With the code I have now, nothing happens when the remove button has been clicked. Is it an issue with the parent element? the li is the parent element, not the input, correct?</p>
  <p>Also, please disregard the checkbox input in the HTML. I have not written the JS code for the checkbox's function yet. Thank you!</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const form = document.querySelector('#addToDo');
  const input = document.querySelector('#theToDo');
  const todolist = document.querySelector('#todolist');
  
  todolist.addEventListener('click', function(e){
      if(e.target.tagName === 'button'){
          e.target.parentElement.remove();
      }
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
   &lt;head&gt;
    &lt;meta charset="utf-8" /&gt;
    &lt;title&gt;&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
       &lt;h1&gt;To Do List:&lt;/h1&gt;
       &lt;ul id="todolist"&gt;&lt;/ul&gt;
           &lt;li&gt;&lt;input type="checkbox" class="checkbox"&gt; Grocery Shop &lt;button type=button class=button&gt;Remove&lt;/button&gt;&lt;br&gt;&lt;/li&gt;
           &lt;li&gt;&lt;input type="checkbox" class="checkbox"&gt; Workout &lt;button type=button class=button&gt;Remove&lt;/button&gt;&lt;br&gt;&lt;/li&gt;
       &lt;form action="" id="addToDo" name="addToDo"&gt;
          &lt;input type="text" id="theToDo" 
          name="addToDo" 
          placeholder="Add to the list here"&gt;
          &lt;button type="submit"&gt;Submit&lt;/button&gt;
        &lt;/form&gt;    
      &lt;/ul&gt;&lt;br&gt;
    &lt;script src=Test.js&gt;&lt;/script&gt;
   &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>