rockets4all
rockets4all

Reputation: 876

JavaScript keyup eventlistener does not work on iPhone

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)});

Upvotes: 1

Views: 536

Answers (1)

Grambam
Grambam

Reputation: 554

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

Upvotes: 1

Related Questions