JQuery - Android - Keyup event not working in backspace in Chrome

I am wondering why the backspace / delete button does not detect the keyup event in jQuery.

I find this odd because it is useful and needs to be supported. Are there any alternatives to this?

This only happens on Android - Chrome.

Greetings

+4
source share
1 answer

You can fix this by adding an event listener to the input.

var inputBox = document.getElementById('inputId');

inputBox.addEventListener(‘input’, function() {
    exampleFunc();
}, false);

Greetings

+8
source

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


All Articles