This tutorial shows how to implement input fields validation in the form just in time of losing focus by this input fields. To make such automatic validation we use onblur or onchange events. onblur event listeners are attached to input text fields, while onchange event handlers are used with select fields or radio buttons.