Choosing from the drop-down list (resetting browser caching) - which event is triggered?

Gist

What event is fired when you select from the drop-down list that is populated from the cache (for example, usernames and other form values) c <input type="text">.

Detailed

In the form we can log in with multiple user names: A, B, ABC. And the browser caches all of these values ​​(remember the wrt password). So, if we try to log in using A- the drop-down menu appears, pointing to a few options: A, ABC- any event is triggered after you select any of the options provided.

oninput, onchange, onblur - none of them seem to work if you select from a drop-down browser.

Help, Beginner

+5
source share
2 answers

You can use these events with a choice. The cache has nothing to do with the drop-down list.

What you need depends on your use.

Typically onchangeused to get a value or call a function when the value changes.

onblurwill trigger the function when focusing down. for example, using tabor other methods.

0
source

This question will be answered: To an input change event?

. , , , , , .

0

All Articles