Form Validation With Java Script

In this article you will learn the Validation in JavaScript and your Validation in JavaScript program

Form Validation With Java Script

Form Validation With Java Script

     

In this article you will learn the Validation in  JavaScript and  your Validation in JavaScript program.

JavaScript 
Java script is used to validate forms, that means checking the proper information are entered to the users in the form fields before submission. It is the most important features in JavaScript . It provide the facilities  if we use the validation in the  Forms then it automatically check the your entered number or text . If the entered number or text is right then we easily give any type of text or numbers. If we entered the wrong or it means not follows the validations then it automatically represent the given messages . We read the messages and we again try the enter number or text.

<html>
<head>
</head>
<body>
<FORM name="fm">
Type your first name:
<INPUT type="text" name="first"><br>
<INPUT type="button" name="dis" value="Display" onClick='alert("You say your name is: "+document.fm.first.value)'>
</FORM>
</body>
</html>