Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, you can use onChange event because it will hit the function once when you leave the input box. Tip: Always specify the type attribute for a