Browser autocompletion detection before selection

In any case, can I detect autocomplete BEFORE the user selects an option from the drop-down list?

enter image description here

Expected: 400010as seen.

I currently have:

$('input').on('input paste change keyup', function(event) {
    if(event.type=='input'){
      console.log( $(this).val() ); 
    }
});

.. and it works AFTER the user has made a choice, but not earlier, as shown in the screenshot above.

+4
source share
2 answers

, . , , , , , . : , , , , .. AJAX, , , .

, .

+6

:

$(document).ready(
function (event) {
    $('.ddClass').on('mouseenter', 'option', function(e) {
    $("#zipcode").val(this.value);

);
});

// .ddClass -

-1

Source: https://habr.com/ru/post/1568267/


All Articles