Answers for "html input file with clear button"

2

javascript clear file input

document.getElementById("myFileInputID").value = null;
Posted by: Guest on August-01-2019
0

add clear button to text input

<input type="search" placeholder="Search..."/>

<style>
  input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: searchfield-cancel-button;
  }

  input[type=search] {
      -webkit-appearance: none;
  }
</style>
Posted by: Guest on December-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language