Answers for "button type clear"

4

reset button html

<input type="reset" value="Reset" />
Posted by: Guest on February-23-2020
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

Browse Popular Code Answers by Language