In HTML we can say to a form to show browser autocomplete. But is it possible to detect if some of the autocomplete values was selected?
Asked
Active
Viewed 39 times
2

rel1x
- 2,351
- 4
- 34
- 62
-
there are already some questions. https://stackoverflow.com/questions/11708092/detecting-browser-autofill – Honsa Stunna Dec 05 '17 at 11:16
1 Answers
0
The browser fires an autocompletechange event. You can do something like this:
$(document).ready(function () {
$('EnterElementHere').on('autocompletechange change', function () {
$('EnterElementHere').html('You selected: ' + this.value);
}).change();
});
Read here

Vinod Bhavnani
- 2,185
- 1
- 16
- 19