If you want to compare the password and the confirm password typed by the user you can use the following javascript
if(document.getElementById("cpass").value==document.getElementById("pass").value) { // password and confirm-password matched } else { // password and confirm-password do not match } Please let me know if this answers your question.
Master VidsPosted Mar 31, 2013, 1:42 PM
Ashish ShuklaPosted Mar 31, 2013, 8:31 AM
if(document.getElementById("cpass").value==document.getElementById("pass").value)
{
// password and confirm-password matched
}
else
{
// password and confirm-password do not match
}
Please let me know if this answers your question.