<!DOCTYPE html>
<html>
<head>
<title>encode and decode</title>
<script type="text/javascript" >
function validation() {
var firstvalue = document.getElementById('first');
var secondvalue = document.getElementById('second');
if (firstvalue.value != secondvalue.value) {
alert("Password not match");
}
}
</script>
</head>
<body>
<h1>Example of compare field validation control</h1>
Password<input type="password" name="gt" value="" id="first" /><br />
Re-type<input type="password" name="gt" value="" id="second" />
<button onclick="validation();">perform validation</button>
</body>
</html>
<html>
<head>
<title>encode and decode</title>
<script type="text/javascript" >
function validation() {
var firstvalue = document.getElementById('first');
var secondvalue = document.getElementById('second');
if (firstvalue.value != secondvalue.value) {
alert("Password not match");
}
}
</script>
</head>
<body>
<h1>Example of compare field validation control</h1>
Password<input type="password" name="gt" value="" id="first" /><br />
Re-type<input type="password" name="gt" value="" id="second" />
<button onclick="validation();">perform validation</button>
</body>
</html>