document.onkeyup code example
Example 1: javascript on keypu
<input type="text" onkeyup="myFunction()">
Example 2: onkeyup in javascript
<input type="text" onkeyup="myFunction()"> //Or your Code
Example 3: onkeyup
A function is triggered when the user releases a key in the input field