Hide Input

remove 'single use' input from visibility.

by trentHarlem

HTML

<div id='input-container'>
   <input type="file" id="myTarget">
 </div>

CSS

#input-container {
  background-color: dodgerblue;
  height: 100px;
  width: 100%;
}

JavaScript

myTarget = document.getElementById("myTarget"),


        myTarget.addEventListener("click", function() {

          document.getElementById('input-container').style.display = 'none';

        });