title: How can I create a list where I can add and remove inputs via buttons?
body: <p>I've an idea. For this I need a list like this draw:</p>
  
  <p><a href="https://i.stack.imgur.com/TnRAul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TnRAul.png" alt="enter image description here"></a></p>
  
  <p>So the main idea is to have a plus and a minus button. When a users presses the plus button, another input get's added. When pressing the minus button beside each input, the related input should be removed. </p>
  
  <p>So I've startet with this here but I'm not very with it and the functionality is not given yet. How can I deal with this a smart way? Is there a problem with the id's? I mean I could copy a row or insert it (with JS) but how can I get the values later of all inputs in one map (with JS) for example? A lot of questions..</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-css lang-css prettyprint-override"><code>.out-task {
    display: flex;
    margin-bottom: 8px;
  }
  
  .delete-task-button {
    margin-left: 6px;
    background: red;
  }
  
  .button {
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  
  .add-task-button {
    background: green;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;label&gt;Tasks&lt;/label&gt;
    &lt;div id="tasks-wrapper"&gt;
        &lt;div class="out-task"&gt;
            &lt;input type="text" id="task" name="task" value=""&gt;
            &lt;span class="delete-task-button button"&gt;-&lt;/span&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  &lt;span class="add-task-button button"&gt;+&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks for helping me out!!!</p>