Sunday, April 13, 2025

Password Matching Script using Javascript


 <script>

function check(){
   var password = document.getElementById("password").value;
   var cpassword = document.getElementById("cpassword").value;

   if(password==cpassword){
    document.getElementById("status").innerHTML="Matched!";
   }
   else{
    document.getElementById("status").innerHTML="Not Matched!";
   }
}
</script>

<input type="text" id="password" placeholder="Type Password" onkeyup="check()">
<input type="text" id="cpassword" placeholder="Type Confirm Password" onkeyup="check()">
<br/><br/>
<b id="status"></b>

No comments:

Post a Comment

Complete Course Programs – Learn & Grow with Us

 We offer professional development courses for students, job seekers, and kids. Start your journey from basics to advanced with practical tr...