title: i can add textbox with button but i don't know how to remove
body: <pre><code>    var emails = document.getElementById('emails'),
       add_link = document.createElement('a'),
       template = emails.getElementsByTagName('div'),
       current = template.length,
       max = 20;
       template = template[0];
  
       submit1.onclick = function () {
       var new_field = template.cloneNode(true);
       current += 1;
       new_field.innerHTML = new_field.innerHTML.replace(/1/g, current);
       emails.appendChild(new_field);
      if (current === max) {
          add_link.onclick = null;
          document.body.removeChild(add_link);
      }
      return false;
      };
  
  document.body.appendChild(add_link);
  </code></pre>
  
  <p>copy from this link
  <a href="https://stackoverflow.com/questions/19130697/add-multiple-textbox-using-button-click-in-javascript?answertab=votes#tab-top">add multiple textbox using button click in javascript</a></p>
  
  <p>how to create button for remove ,please tell me</p>