H
H
Harold2015-10-20 12:49:57
css
Harold, 2015-10-20 12:49:57

Own reset button for each input, how do they do it?

Hello everyone,
Today I walked around Yandex and noticed on the right in the search line, a button to reset the entered text.
Then I looked at the exchange rate. And I saw the same reset buttons, but in each field.

In this connection, the question is, how does Yandex do it, resetting the text separately for each input?

67e43cac500a4431b1f27a9e4b76fed3.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kornachev, 2015-10-20
@zelan

The simplest is a normal div offset over input with click event handling via JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question