replace addEventListener("input"
with addEventListener("focusout"
if you want to trigger on blur instead of keypress
1 Like
replace addEventListener("input"
with addEventListener("focusout"
if you want to trigger on blur instead of keypress