How to check password and conform password in javascript



How to check password and conform password in javascript


<!doctype html>
<html>
<head>
   <title> JavaScript Function </title>
<script>
   function validation(){
        var a = document.getElementById("pswd").value;
 var b = document.getElementById("cpswd").value;

     if(a==b){
    alert("Conform Password D'nt Match");
return
}
}
</script>

<form>
    <input type="text" name="password" id="pswd">
<br>
 <input type="text" name="password" id="cpswd">
<br>
<input type="button" Value="Button" onclick="validation()">

</form>

</body>
</html>
Post A Comment
  • Blogger Comment using Blogger
  • Facebook Comment using Facebook
  • Disqus Comment using Disqus

No comments :

Thanks For visiting Infotech Solutuion Blog