How to validate name , email,phone no with javascript and Html
Below is the code of validation <html> <head> <title> Validation </title> <script language = "javascript" > function validate () { var reg = / ^ ([ A-Za-z0-9_\- \. ]) + \@ ([ A-Za-z0-9_\- \. ]) + \. ([ A-Za-z ] {2,4} ) $ / ; var fname = document . getElementById ( 'fname' ). value ; fname = fname . trim (); var lname = document . getElementById ( 'lname' ). value ; ...