Home > Enterprise >  JavaScript keyup eventlistener does not work on iPhone
JavaScript keyup eventlistener does not work on iPhone

Time:05-19

I have several events that use keyup, but they do not fire on iOS in safari. Is there another event listener that can accomplish similar actions?

Example of keyup I use to detect when someone is typing in a searchbox

document.getElementById('user_search_select').addEventListener("keyup", e=>{livebox(usersearch_counter=0)});

CodePudding user response:

Answer here: document.getElementById('user_search_select').addEventListener("input", e=>{livebox(usersearch_counter=0)});

  • Related