<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