It is very simple to make validate a form with javascript. There we are coded a little more javascript and HTML. Hello friends, in this tutorial, we are making a simple validation form with javascript.
1. Simple Validation Form
Demo2. Retype Password Validation
Demo3. JavaScript Number Validation
NaN refers to Not-a-Number which is used to determine whether a value is an illegal Number.Demo
4. JavaScript Image Validation
Demo5. JavaScript Email Validation
The lastIndexOf() method returns the position of the last occurrence of a specified value in a string, whereas indexOf() returns the position of the first occurrence of a specified value in a string.Demo