How to lose focus on input field with JavaScript

Specially useful when you're on mobile and need to hide the phone keyboard.

document.activeElement.blur();

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*