Skip to content
Advertisement

How to print error message under respective input field using javascript validation in php [closed]

How to print error message under respective input field if left empty and error message must be removed when filled, how to proceed further i have not used javascript for validation earlier.

script code

JavaScript

html code is here

JavaScript

Advertisement

Answer

You can try this code:

It will check errors and returns at last after displaying all error messages if any.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement