js event listener when typing code example
Example 1: html oninput
<input type="text" oninput="myFunction()">
Example 2: javascript detect input change
$('#inputID').on("change keyup paste", function() {
//my input text has changed
});
<input type="text" oninput="myFunction()">
$('#inputID').on("change keyup paste", function() {
//my input text has changed
});