d
Amit DhamuSoftware Engineer
 

Clear Button On Input Field

1 minute read 00000 views

Create an input with type search and add the following CSS rule:

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