Originally posted by vanan saravanan:
I'm trying to come up with a password change function. This is how it should work
1 textfield : enter new passowrd
2 textfield : enter same password
If the value from both the textfield match, then update the database. I do know how to do the updating and retriving part. Need help on how to compare both textfields and to provide a pop up if they dont match.
Getting value of textfield in JS:
var value = document.getElementById("id_of_textfield").value;
Now it's your job.