Skip to content

Magento2 – Form validate instant and add class

Is there a way to directly validate a form in Magento2.3x?

So that when the input focus goes to the next input element, it automatically validates the previous input and add a class to the input?

We want to show some approve or decline icon when a user fills the form in correct.
This so the customer knows the input is or is not correct.

It’s quite easy JS on Magento1.9x, but I can not find it for Magento2.3.