I have a text input where users are able to write addresses, I want to trigger a javascript function when a number is typed in the text input, how can I achieve it?
EDIT: What I need is to know when a number has been typed, onkeyup via jquery works like a charm, this is what I did:
$("#q").keyup((e) => {
var value = $("#q").val();
var regex = new RegExp("[a-zA-Z0-9_ ]\\d+");
var succeded = regex.test(value);
...